#!/usr/bin/env python # coding: utf-8 # In[1]: pip install pypowsybl # In[2]: import pypowsybl as pp # Load a node/breaker test network # In[3]: n = pp.network.create_four_substations_node_breaker_network() # Get substation data frame # In[4]: substations = n.get_substations() # Print substation data frame # In[5]: substations # Generate a single line diagram SVG from substation S1 # In[6]: sld = n.get_single_line_diagram('S1') # Display the single line diagram SVG # In[7]: sld # In[ ]: