Welcome to the workshop!#

26-28 March 2025, Berlin, Germany

This webpage contains PyPSA & PyPSA-Eur workshop materials for the colleagues from the Moldovan Ministry of Energy & the Technical University of Moldova. These materials are used as a part of the broader training program titled “Modelarea sistemului energetic al Moldovei folosind PyPSA” on behalf of the BMBF-funded Green Deal Ukraina, a project under Helmholtz-Zentrum Berlin.

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

Irieo/workshop-pypsa-gdumd

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

Acknowledgements#

We acknowledge funding from the German Federal Ministry for Education and Research (BMBF) under grant 03SF0715 (Green Deal Ukraine project).

More about the Green Deal Ukraine project: https://greendealukraina.org/