Installation
TIP
Ensure that an up-to-date version of uv is available
If you are planning to use supercomputing infrastruture, check out our installation scripts and instructions in the menu.
Quick Install
Provides the core functionality to get started (predefined systems and datasets, JAX/brian2 simulations). May be behind the latest development in the main branch.
uv pip install livnAdvanced Setup
All backends and whistles! Required if you are interested in generating your own systems (instead of using the pre-defined ones), or scaling up via MPI using NEURON.
Prerequisites
For advanced use cases, an MPI and HDF5 installation is required. It is typically easiest to install using your system's package manager. However, if you prefer building parallel HDF5 yourself follow these instructions.
Linux (Debian) 🐧 / Windows (WSL2) 🪟
apt install -y cmake mpich libmpich-dev libhdf5-mpich-dev hdf5-toolsmacOS 🍎
brew install hdf5-mpineuroh5 (optional)
Install if generating 3D morphological systems
If you want to generate custom 3D systems with realistic morphology (not common), you will need to compile neuroh5. This is not required if you download livn's default systems or if you like to generate custom 2D systems.
git clone https://github.com/iraikov/neuroh5.git
cd neuroh5
cmake .
make
# add the neuroh5 binaries to your PATH
export PATH="/path/to/neuroh5/bin:$PATH"Installation
git clone https://github.com/livn-org/livn.git
cd livn
uv sync
# customize as needed, e.g. core + system generation ...
uv sync --package systems
# or just get the whole smash ...
uv sync --all-packages --all-groups --all-extrasTIP
It is important to ensure that the mpi4py package links against the correct MPI version. To force a package rebuild using the currently active MPI installation, use:
uv pip install --force-reinstall --no-cache-dir --no-binary=mpi4py mpi4pyTests
You may need the following additional dependencies to run all tests:
uv pip install pyarrow multiprocess xxhashResources
- Paper describing the H5 file format
- h5py and neuroh5
- A VS Code extension for opening H5 files:
h5web.vscode-h5web