Interactive Inputs


In [1]:
import ipywidgets as ipyw

In [2]:
from psst.case.generator import Generator
from psst.case.generator import GeneratorColumnView as GeneratorView
from psst.case.generator import GeneratorCostView

import ipywidgets as ipyw

In [3]:
g = Generator(maximum_real_power=100)

In [4]:
g.nsegments = 3

In [5]:
gv = GeneratorView(g)
gcv = GeneratorCostView(g)

In [6]:
ipyw.HBox(children=[gv, gcv])