Installation¶
Requirements¶
- Python >= 3.11
- uv (recommended package manager)
Install from PyPI¶
Or with pip:
[all] is the recommended install: it switches on every optional feature.
If you installed with uv, you can also run the bundled demo for fun:
Install from GitHub¶
For the latest development version:
Development installation¶
Clone the repository and sync all dependencies, including every optional extra and the dev tools:
Optional features (extras)¶
Simulating and plotting a field needs nothing beyond the core install. Three
features carry heavier dependencies, so they ship as opt-in extras. Install
plain esdiva and add back only what you use:
| Install | What you get |
|---|---|
esdiva |
The simulator core: fields, transducers, reception, beamforming, 2-D and 3-D plotting. Enough for the whole Quick Start. |
esdiva[atlas] |
BG_Atlas, which maps computed fields onto brain anatomy through BrainGlobe. Adds pandas, pyarrow and tifffile. |
esdiva[video] |
Saving animations as .mp4, .avi or .gif from the plotting utilities. Adds imageio and a bundled ffmpeg. Without it, static plots and screenshots still work. |
esdiva[jupyter] |
Interactive 3-D PyVista scenes rendered inside a notebook. Adds the trame and ipywidgets stack. Without it, 3-D scenes still open in a desktop window. |
esdiva[all] |
All of the above. |
Extras combine:
Using a feature whose extra is missing raises an error naming the extra to install, so nothing fails silently.