Installation¶
Requirements¶
- Python >= 3.12
- A working JAX installation (CPU or GPU)
Quick Install¶
Install SeapoPym directly from GitHub:
Or with uv:
Optional Extras¶
SeapoPym provides several optional dependency groups:
| Extra | What it adds | Install command |
|---|---|---|
gpu |
JAX with CUDA 12 support | pip install "seapopym[gpu] @ git+..." |
optimization |
Evolutionary strategies (evosax) | pip install "seapopym[optimization] @ git+..." |
viz |
Plotting (matplotlib, seaborn, tqdm) | pip install "seapopym[viz] @ git+..." |
docs |
Documentation build tools | pip install "seapopym[docs] @ git+..." |
dev |
Testing and linting (pytest, ruff, pyright) | pip install "seapopym[dev] @ git+..." |
Combine extras with commas:
GPU Support¶
SeapoPym runs on CPU by default. For GPU acceleration:
Note
GPU support requires CUDA 12 and a compatible NVIDIA driver. See the JAX installation guide for details.
Development Setup¶
Clone the repository and install all dependencies with uv:
This installs all optional groups (dev, docs, optimization, viz) in a virtual environment.