Closed nosknut closed 4 weeks ago
https://github.com/wokwi/wokwi-features/assets/16221324/f6569cf4-aa81-4ea0-b5ed-b92a11df2916
Working interactive canvas and button widget directly in VSCode
A potentially relevant repo: https://github.com/ylabrj/jam
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