Welcome to the workshop!#

22-23 May 2025, TU Berlin, Germany

This repository contains PyPSA(-Eur) materials for a workshop organized for a broad audience of researchers and industry stakeholders interested in energy system modelling. The workshop is hosted by the ENSYS research group at TU Berlin — Fabian Neumann and Iegor Riepin — with support from the publicly funded RESILIENT project.

We gratefully acknowledge funding by the German Federal Ministry for Economic Affairs and Climate Action (BMWK) under Grant No. 03EI4083A (RESILIENT project) jointly with the CETPartnership (https://cetpartnership.eu/) through the Joint Call 2022, which supports our modelling workshops and public training events. As such, we further acknowledge funding from the European Union’s Horizon Europe research and innovation programme under grant agreement no. 101069750. https://resilient-project.github.io/

More about the RESILIENT project: https://resilient-project.github.io/

Google Colab#

You can work with the workshop materials without a local Python installation using online service Google Colab which provides an online Python environment. This requires only a Google account.

Open any jupyter notebook and click on the rocket 🚀 in the top right corner. It will launch a Colab workspace in your browser with the jupyter notebook loaded.

If that does not work download the .ipynb file and import it in Google Colab

Setting up your Python environment locally#

Anaconda#

Coordinating the compatibility between different Python software packages and their multiple versions can be difficult! Fortunately, the problem is solved by using a Python distribution and/or package manager.

For instance, you can install on your computer the popular Anaconda Python Distribution.

For Linux and MacOS users, you can access the command line by opening the terminal program.

For Windows users, you should first install Anaconda (described above) or miniconda (described below), which gives you access to the “Anaconda Prompt” desktop application. Instructions for this are given on the Anaconda Website. From the Anaconda Prompt, you should be able to run conda.

Managing environments with conda#

Python coupled with a package manager provides a way to make isolated, reproducible environments where you have control over all installed packages and configurations. Here is a great short article that contains all the essential concepts and tips about using conda.

Tip: use lightweight miniconda#

Do yourself a favor — use a lightweight installation called miniconda. It is very likely that you don’t want the full Anaconda Python Distribution.

Environment for this course: workshop#

… with pip#

If you want to use pip for managing your environment, download

resilient-project/pypsa-workshop-202505

There is a download button at the top-right corner.

After navigating to the folder where the requirements.txt file is stored, you can install the required packages with

pip install -r requirements.txt

This should allow you to start a new Jupyter window:

jupyter lab