EnergyLab Foundational PyPSA Course#
Welcome to the EnergyLab Foundational PyPSA Course! This course is designed to give you the foundational skills needed to work with Python and build energy system models using PyPSA (Python for Power System Analysis).
About This Course#
This course takes you from Python basics through to building real-world PyPSA energy models. Whether you are new to programming or looking to develop hands-on energy modelling skills, this course provides a structured path through:
Core Python programming skills
Data manipulation with Pandas
Geospatial analysis with GeoPandas
Working with real-world energy datasets (GRDC)
Building stochastic energy models (Zambia case study)
Building multi-node PyPSA models (Japan case study)
Each lesson builds on the previous, equipping you with practical skills for energy system analysis and PyPSA model development.
Contact#
Getting Started#
Option 1: Google Colab (Recommended for Beginners)#
You can run the notebooks directly in your browser using Google Colab β no installation required. Click the rocket icon at the top of any lesson page and select βColabβ to get started. A Google account is required.
Option 2: Local Installation#
To run the notebooks locally:
Clone this repository:
git clone https://github.com/PriyeshGosai/energylab-foundational-pypsa.git cd energylab-foundational-pypsa
Install dependencies:
pip install -r requirements.txt
Launch Jupyter Lab:
jupyter lab
Course Contents#
This course consists of six lessons covering Python fundamentals and PyPSA modelling:
Lesson 1: Python Introduction β core programming concepts and syntax
Lesson 2: Introduction to Pandas β data manipulation and analysis
Lesson 3: Introduction to GeoPandas β geospatial data for energy systems
Lesson 4: GRDC Data Reader β working with real-world hydrological datasets
Lesson 5: Zambia Stochastic Model β building a stochastic energy model
Lesson 6: Japan PyPSA Model β building a multi-node PyPSA network model
Each lesson includes:
Conceptual explanations
Code examples
Hands-on exercises
Visualization tools
Resources#
PyPSA Documentation: https://pypsa.org
PyPSA-Earth: pypsa-meets-earth
Course Repository: PriyeshGosai/energylab-foundational-pypsa
Further Learning#
License#
This course material is open source and available for educational purposes.
Ready to get started? Navigate to Lesson 1 using the sidebar!