🎯 This repository contains introductory PyPSA exercises for working with PyPSA basic components to build long-term energy system scenarios (LTES).
day1/: Introductory notebooks on single-region systems, storage, and linksday2/: Notebooks on CO2 management and direct air capturedata/: Input datasets used in the exercisesenvs/: Conda environment files and pip requirements
The local path must not contain spaces.
git clone https://github.com/agoenergy/pypsa-basic-training.git
cd pypsa-basic-trainingIf needed, install Git first: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
Install Miniconda (recommended) or Anaconda:
- Miniconda: https://docs.conda.io/en/latest/miniconda.html
- Conda install guide: https://docs.conda.io/projects/conda/en/latest/user-guide/install/
If you are also doing the PyPSA-SPICE training, install the full environment (envs/environment.yml). You can then use the same environment for both trainings.
# Use this if you also work with PyPSA-SPICE
conda env create -f envs/environment.yml
conda activate hotpotIf you only want to work with these basic training exercises, use the lightweight environment (envs/environment_light.yml).
# Use this for PyPSA basic training only
conda env create -f envs/environment_light.yml
conda activate hotpot-lightjupyter labOpen the notebooks in day1/ and day2/ to begin the training.
- The full environment includes additional tooling and optional solver integrations.
- If environment creation fails, update Conda and retry:
conda update -n base -c conda-forge conda- Training materials: https://cloud.sefep.eu/s/dij8QnG7D5e6egd
- PyPSA documentation: https://docs.pypsa.org/latest/