Development¶
Environment¶
Install the development environment with uv:
Updating Dependencies¶
The committed uv.lock is the single dependency lockfile used by local
development, CI and the Windows installer. Windows selects the CUDA 12.6 builds
of Torch and Torchvision through the platform-specific sources in
pyproject.toml; the other platforms use PyPI.
After adding or changing a dependency in pyproject.toml, update and check the
lockfile with:
To update one dependency while keeping the rest of the locked versions where possible, use:
Commit pyproject.toml and uv.lock together. CI uses uv run --locked, and
the Windows installer uses uv export --locked, so both fail instead of
silently resolving different dependencies when the lockfile is stale.
Install pre-commit hooks with prek:
Run the Application¶
Open a saved experiment directly:
Run Tests¶
Documentation¶
Zensical and mkdocstrings-python are installed as development dependencies.
Preview the docs locally:
Build the static site:
The generated site is written to site/. The GitHub Actions documentation
workflow publishes that directory to GitHub Pages on pushes to main.
API reference pages live under docs/api/ and use mkdocstrings directives:
Add new public modules to the API pages and navigation in zensical.toml.