innovationOUtside / nbev3devsim

Ev3DevSim ipywidget in Jupyter notebooks
Apache License 2.0
5 stars 0 forks source link

Load simulator via a notebook toolbar button #30

Open psychemedia opened 4 years ago

psychemedia commented 4 years ago

At the moment we need to load in the simulator widget code and enable the magic:

from nbev3devsim import ev3devsim_nb as eds
%load_ext nbev3devsim

and then initiate and display the nbev3devsim widget:

roboSim = eds.Ev3DevWidget()
display(roboSim)

It might simplify matters if we provide a notebook toolbar button that loads the simulator into a notebook once and once only, creating a persistent reference to the simulator that is also made known to the code cell block magic so that it can send code to the simulator directly, perhaps also loading the simulator automatically if it has not already been loaded into the notebook?

psychemedia commented 4 years ago

The notebook variable inspector extension:

Packaging and launching the simulator in this way would allow it to be:

See also other display alternatives: https://github.com/innovationOUtside/nbev3devsim/issues/17.