wokwi / wokwi-features

Wokwi Feature requests & Bug Reports
https://wokwi.com
73 stars 17 forks source link

Ipynb support #634

Closed nosknut closed 4 weeks ago

nosknut commented 1 year ago

It would be cool to run simulations in ipynb-style notebooks.

This could for example be done by compiling and running the simulator from python. An elegant api could in theory make it a practical idea.

Here is an example of existing solutions that allows python outputs to interact with eachother.

The the fractal tree example has a button in a cell output that refreshes the canvas in the cell output above it. https://ipycanvas.readthedocs.io/en/latest/lite/lab/

The source post: https://blog.jupyter.org/ipycanvas-a-python-canvas-for-jupyter-bbb51e4777f7

nosknut commented 1 year ago

https://github.com/wokwi/wokwi-features/assets/16221324/f6569cf4-aa81-4ea0-b5ed-b92a11df2916

Working interactive canvas and button widget directly in VSCode

nosknut commented 1 year ago

A potentially relevant repo: https://github.com/ylabrj/jam