Getting started¶
Installation¶
You can easily install released versions of pypowsybl-jupyter from PyPI using pip:
pip install pypowsybl_jupyter
Note: restarting jupyter-lab could be needed in order for the widgets to be correctly registered.
If you want to build pypowsybl-jupyter from its sources, please check out the detailed build instructions on github.
Basic usage: network explorer¶
Paste this code into a Jupyter notebook, to display an interactive network explorer widget.
import pypowsybl.network as pn
from pypowsybl_jupyter import network_explorer
network=pn.create_ieee9()
network_explorer(network)
Through the network explorer widget you can display NAD and SLD diagrams for a voltage level, selected from the available network’s voltage levels, in two dedicated tabs. A third tab, ‘Network map’ displays the network’s substations and lines on a map.

Going further¶
In the examples directory you can find some notebooks demonstrating the widgets.
For more details on pypowsybl-jupyter’s widgets, please check out the User guide.