Installation¶
Requirements¶
pyrcel v2 requires Python ≥ 3.11. There are no compiled native dependencies — everything installs from PyPI.
Recommended: uv¶
uv is the recommended tool for managing Python
environments and projects. Install it once:
Add to an existing project¶
New project from scratch¶
pip¶
GPU install (CUDA 12)¶
Swap in the CUDA-enabled JAX backend with the gpu extra:
See the GPU setup guide for float64 configuration and device-placement details.
From GitHub (latest unreleased)¶
Install directly from the master branch to get unreleased changes:
uv add "pyrcel @ git+https://github.com/darothen/pyrcel.git"
# or
pip install "git+https://github.com/darothen/pyrcel.git"
A specific branch or tag:
Editable install (local development)¶
Clone the repo and install in editable mode so source changes take effect immediately:
git clone https://github.com/darothen/pyrcel.git && cd pyrcel
uv sync # installs core deps into an isolated .venv
uv run python examples/basic_run.py
With development tools (tests, linting, type checking):
uv sync --extra test
uv run prek run --all-files # lint + type-check
uv run pytest -m "not slow" # fast test suite
Optional extras¶
| Extra | Contents |
|---|---|
gpu |
CUDA 12 JAX backend |
test |
pytest, hypothesis, pyrefly |
examples |
matplotlib for example scripts |
docs |
mkdocs + Material + mkdocstrings for building these docs |