Quick Start¶
Prerequisites¶
- Python 3.11+
- Git
- uv
make(optional but recommended — see Installing Make below)
Installation¶
Verify:
Anaconda / Conda¶
If you use Anaconda or Miniconda, skip the uv prerequisite. Use conda to create the environment and pip to install:
Verify:
Sync notebooks (replaces make sync-ipynb, which requires uv):
Then launch JupyterLab:
Note
make targets that call uv (e.g. make sync-ipynb, make test) will not work in a conda environment. Use the equivalent commands shown above instead.
Notebook Format¶
This project uses jupytext to store notebooks as plain Python files (.py) in the py:percent format. This means:
.pyfiles are the source format — version-controlled, clean diffs, easy to edit in any IDE.ipynbfiles are generated from the.pyfiles — used for interactive execution in JupyterLab
After cloning (or pulling new changes), sync the .ipynb files:
Without make
Tip
You don't need .ipynb files — you can run the .py files directly with uv run python notebooks/301_custom_fair_share_allocation.py. The .ipynb format is only needed if you want the interactive JupyterLab experience.
Running Notebooks¶
| Workflow | Notebook |
|---|---|
| country-fair-shares | notebooks/301_custom_fair_share_allocation.ipynb |
| iamc-regional-fair-shares | notebooks/401_custom_iamc_allocation.ipynb |
See User Guide for detailed workflow documentation.
Installing Make¶
make is a standard build tool used to run project commands conveniently. It is optional — every make target has an equivalent uv command shown in the Makefile.
Install via Chocolatey:
Or via winget: