uv⚓︎
Install uv⚓︎
First, install uv. This can be done through
Find more information at https://docs.astral.sh/uv/getting-started/installation/.
Python versions⚓︎
uv can install and manage Python interpreters for you, so there's no need for a separate tool like pyenv. To install
the Python version this project supports:
- This project also supports 3.11 - 3.14 if you want to use those instead.
To pin a specific Python version for the project, create a .python-version file in the project root:
uv will then use that version whenever it creates or syncs the virtualenv.
Install the project⚓︎
From the project's root directory, run
This will create a .venv directory and install the main dependencies plus the dev group (lint, type checking,
testing, and Jupyter).
To install everything - including the docs group - run
To install only the core dependencies (no dev tools), run
- Open the project
- Click Add New Interpreter -> Add Local Interpreter... -> uv
- Point it at the project's
.venvdirectory (created byuv sync)
In future sessions, either enter the environment with
or prepend your commands with
For example,
Adding and removing dependencies⚓︎
To add a runtime dependency:
To add a development dependency to a specific group:
To remove a dependency:
These commands update both pyproject.toml and uv.lock in one step.