The steps for workshop are to follow Power Flow Example.ipynb
and Power Flow Assignment.ipynb
simultaneously.
To complete the workshop on your own, go through Power Flow Example
notebook while completing the respective assignment from at each checkpoint.
Participants are expected to have knowledge of Juypter Notebook and numpy.
It is recommended to read the numpy structured array documentation.
Please create the relevant environment before the workshop. If you encounter problems, please raise a question in the discussion board
-
Download (or checkout) this workshop/repository and remember the destination location. For example:
C:\Users\YourUserName\Downloads\power-grid-model-workshop
. -
Install the latest Python version. You probably want the Windows installer (64-bit) under Stable Release.
-
Now open a terminal (Windows-Key + R, type
cmd
, press OK) and use thecd
(change dir) command to navigate to the folder where you downloaded the workshop. For example:C:\Users\YourUserName> cd Downloads\power-grid-model-workshop C:\Users\YourUserName\Downloads\power-grid-model-workshop>_
-
Optional: Create and activate a virtual environment. You can skip this step, but it helps you to keep your system clean, as we will be installing about 70 Python packages in the next step.
> python -m venv venv > venv\Scripts\activate
-
install Power Grid Model and some other packages we'll use for this workshop:
> pip install power-grid-model jupyter pandas matplotlib
-
Now run jupyter notebook. It will probably (depending on your system) automatically open a browser at http://localhost:8888. If not, the console output will tell you where to find the jupyter notebook server.
> jupyter notebook
-
Try any of the
.ipynb
files, for examplePower Flow Example.ipynb
and press the>>
button to run the entire file. Note that the last section in the Power Flow Example is about error handling, so don't get scared if you see some error messages there.
- Open a terminal (Windows-Key + R, type
cmd
, press OK) and use thecd
(change dir) command to navigate to the folder where you downloaded the workshop. For example:C:\Users\YourUserName> cd Downloads\power-grid-model-workshop C:\Users\YourUserName\Downloads\power-grid-model-workshop>_
- Optional: Activate the virtual environment (if you created one initially).
> venv\Scripts\activate
- Run jupyter notebook. It will probably (depending on your system) automatically open a browser at
http://localhost:8888. If not, the console output will tell you where to find the jupyter notebook server.
> jupyter notebook
If you know WSL2/Linux you should be able to configure environment yourself.
> pip install power-grid-model jupyter pandas
> jupyter notebook
Open the jupyter notebook Power Flow Example.ipynb
, try to run it.
This project is licensed under the Mozilla Public License, version 2.0 - see LICENSE for details.
Please read CODE_OF_CONDUCT and CONTRIBUTING for details on the process for submitting pull requests to us.
Visit Contribute for a list of good first issues in this repo.
Please read SUPPORT for how to connect and get into contact with the Power Grid Model project.