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#

Instructor

Priyesh Gosai


priyesh@innovateimpact.com

LinkedIn | GitHub

CCG Energy Lab I4I

Getting Started#

Option 2: Local Installation#

To run the notebooks locally:

  1. Clone this repository:

    git clone https://github.com/PriyeshGosai/energylab-foundational-pypsa.git
    cd energylab-foundational-pypsa
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. 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#

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!