Open jasongrout opened 6 years ago
I would imagine this would be like the HTML widget - it has a single 'value' attribute which is the vdom root node, and uses react to render to it's root node.
(This may be better to be a separate widget at first, and we can eventually incorporate it into ipywidgets as it matures.)
Hi @jasongrout , I have created a custom IPyWidget using VDOM that uses VDOM on the backend/python side and ReactJS on the frontend/browser side. Please have a look at the example here. Ref: Vdom_Ipywidget. This example has been tried and tested on Jupyter Notebook.
How should we proceed further with integrating it with the IPyWidgets ?
I added essentially the same functionality to the jp_doodle package. Here is the demo
https://github.com/AaronWatters/jp_doodle/blob/master/notebooks/misc/wdom%20demo.ipynb
It supports calling in from Python to widget components and calling back from the components (via javascript) to the Python kernel. FYI.
It would be cool to have a vdom ipywidget using https://github.com/nteract/vdom on the python side and probably react on the browser side.