Get started¶
Install¶
Install a single package:
…or the umbrella package, which pulls in every viscy-* package at once:
For development, clone the monorepo and sync the full workspace:
git clone https://github.com/mehta-lab/VisCy.git
cd VisCy
uv venv -p 3.13 # (1)!
uv sync --all-packages --all-extras # (2)!
- VisCy targets Python ≥ 3.12. 3.13 is a safe default.
--all-packagesinstalls every workspace package in editable mode;--all-extrasadds optional dependencies (e.g.triplet,livecell).
Run anything inside the environment with uv run <command>.
On HPC Systems
Symlink the uv cache out of your home directory before syncing as home quotas can fill up fast:
Verify the install¶
import viscy_data, viscy_models, viscy_transforms, viscy_utils # (1)!
print(viscy_models.__version__) # (2)!
- The import names use underscores (
viscy_data), while the PyPI distribution names use hyphens (viscy-data). - Versions are derived from git tags via
uv-dynamic-versioning.
Build the docs locally¶
These docs are built with Zensical. The dev server live-reloads as you edit:
uv sync --all-packages --group doc # (1)!
uv run python docs/_gen_versions.py # (2)!
uv run zensical serve
- The
docdependency group lives only on the root project — it pulls inzensical,mkdocstrings-python, andmike. No subpackage carries doc deps. - Regenerates the package version table in
docs/packages/index.md.
Looking for an application?
Cytoland (virtual staining) and DynaCLR (contrastive learning) build on these packages, and their documentation will be coming soon.