Installation#
Quick install#
spatialvi-tools requires Python ≥ 3.12. Install into a fresh virtual environment:
pip install spatialvi-tools
Optional extras#
Extra |
Command |
Installs |
|---|---|---|
Spatial backends |
|
squidpy, spatialdata |
GPU acceleration |
|
cuML, cuPy, cuGraph |
Tutorials |
|
jupyter, matplotlib, seaborn |
All |
|
everything above |
Development install#
git clone https://github.com/YosefLab/spatialvi-tools.git
cd spatialvi-tools
pip install -e ".[dev,test]"
pre-commit install
Verifying the installation#
import spatialvi
print(spatialvi.__version__)
GPU support#
RAPIDS-based acceleration (neighbor computation and latent representation) requires a CUDA-capable
GPU and the rapids extra. The base package runs on CPU without any GPU dependencies.