Installation
This repository uses uv for deterministic environment management.
1. Clone the Repository
git clone https://github.com/milaforscience/activelearning.git
cd activelearning
2. Install uv
Install uv using one of the supported methods below.
macOS with Homebrew
brew install uv
macOS or Linux via Official Installer
curl -LsSf https://astral.sh/uv/install.sh | sh
Python pip
pip install uv
3. Set Up the Environment
Once uv is installed, sync the project dependencies from the repository root:
uv sync
This installs all dependencies into a local .venv/, pinned to the exact versions in the lockfile.
Note
uv sync strictly enforces the lockfile state. This guarantees experimental reproducibility but will remove any extraneous packages from the environment.
To use an existing virtual environment instead of the default .venv/:
UV_PROJECT_ENVIRONMENT=/path/to/venv uv sync
Next Steps
Once set up, head to the Quickstart to run your first experiment.