Installation

Prerequisites

To use the IBL Alignment GUI, you need Python 3.10 or higher installed on your system.

We recommend installing the package into a new virtual environment to avoid dependency conflicts. You can use any of the following tools:

  • uv (recommended)

  • venv (included with Python)

  • conda (if you have Anaconda or Miniconda installed)

Installation Methods

Choose one of the following installation methods based on your preferred virtual environment tool.

Using uv (Recommended)

uv is a fast Python package installer and resolver.

Install uv

Follow the installation instructions at: https://docs.astral.sh/uv/getting-started/installation/

Create and activate virtual environment

Open a terminal and create a new virtual environment:

uv venv ibl-alignment --python 3.13

Activate the virtual environment:

source ibl-alignment/bin/activate
.\ibl-alignment\Scripts\activate

Install the package

Clone and install the IBL Alignment GUI:

git clone https://github.com/int-brain-lab/ibl-alignment-gui.git
cd ibl-alignment-gui
uv pip install -e .
Using venv

Python’s built-in venv module can be used to create virtual environments.

Create and activate virtual environment

Open a terminal and create a new virtual environment:

python -m venv ibl-alignment

Activate the virtual environment:

source ibl-alignment/bin/activate
.\ibl-alignment\Scripts\activate.bat

Install the package

Clone and install the IBL Alignment GUI:

git clone https://github.com/int-brain-lab/ibl-alignment-gui.git
cd ibl-alignment-gui
pip install -e .
Using conda

If you have Anaconda or Miniconda installed, you can use conda to create a virtual environment.

Create and activate virtual environment

Open a terminal and create a new virtual environment:

conda create -n ibl-alignment python=3.13

Activate the virtual environment:

conda activate ibl-alignment

Install the package

Clone and install the IBL Alignment GUI:

git clone https://github.com/int-brain-lab/ibl-alignment-gui.git
cd ibl-alignment-gui
pip install -e .

Verifying Installation

To verify that the installation was successful, run:

python -c "import ibl_alignment_gui; print(ibl_alignment_gui.__version__)"

This should print the version number of the installed package without any errors.

If the installation was successful, you can proceed to the Getting Started guide.