Installation#

Requirements#

  • Python ≥ 3.11

  • A running Lab Streaming Layer (LSL) stream or any MNE-readable file for mock mode (.fif, .vhdr, .edf, .bdf, .set, …)

  • FreeSurfer subjects directory (only for source-localisation and brain-plot features)

conda / mamba#

The provided environment.yml creates a complete conda environment. mamba (or micromamba) is strongly recommended over plain conda because it uses a faster C++ dependency solver.

# Install mamba into base (once)
conda install -n base -c conda-forge mamba

# Create the mne-rt environment
mamba env create -f environment.yml   # ~2 min

# Or with plain conda (slower)
conda env create -f environment.yml

# Activate
conda activate ant

# Update after pulling new changes
mamba env update -f environment.yml --prune

Verifying#

mne-rt info     # prints MNE-RT and dependency versions
mne-rt demo     # runs a 120-second mock real-time session

Optional extras#

Extra

What it adds

Install command

viz

3D brain visualisation (pyvista, pyvistaqt) — needed for BrainPlot

pip install "mne-rt[viz]"

dev

Testing only (pytest, pytest-cov)

pip install "mne-rt[dev]"

lint

Linting and formatting (ruff, mypy, pre-commit)

pip install "mne-rt[lint]"

docs

Documentation build tools (Sphinx, sphinx-gallery, …)

pip install "mne-rt[docs]"

full

All of the above

pip install "mne-rt[full]"