You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the recent announcement of pyscript and jupyterlite there is now a ton of buzz around WASM Python builds, specifically pyodide. However the code required to get Bokeh to a) render in pyodide and b) bi-directionally sync Python with Javascript is not totally straightforward and some utilities would aid a user.
Feature description
In recent releases of Panel I've started incorporating utilities for displaying panel and bokeh components in the DOM and bi-directionally sync the Python and Javascript Document instances. That code now lives in https://github.com/holoviz/panel/blob/master/panel/io/pyodide.py but most of it is not specific to Panel at all and could live in Bokeh. I've also started working on a panel convert utility that takes a Panel/Bokeh script and exports it to an HTML file using pyodide or pyscript. It would be great to offer some or all of these utilities directly to Bokeh users.
Potential alternatives
One issue is that pyodide is just one particular implementation of a WASM Python build. While for now it is the default implementation there are efforts to get CPython to compile directly to WASM and these approaches may eventually replace Pyodide. For now though pyodide is the de-facto standard and is the only solution that provides convenient APIs installing packages, interacting with the DOM and some limited network access.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Problem description
With the recent announcement of pyscript and jupyterlite there is now a ton of buzz around WASM Python builds, specifically pyodide. However the code required to get Bokeh to a) render in pyodide and b) bi-directionally sync Python with Javascript is not totally straightforward and some utilities would aid a user.
Feature description
In recent releases of Panel I've started incorporating utilities for displaying panel and bokeh components in the DOM and bi-directionally sync the Python and Javascript Document instances. That code now lives in https://github.com/holoviz/panel/blob/master/panel/io/pyodide.py but most of it is not specific to Panel at all and could live in Bokeh. I've also started working on a
panel convert
utility that takes a Panel/Bokeh script and exports it to an HTML file using pyodide or pyscript. It would be great to offer some or all of these utilities directly to Bokeh users.Potential alternatives
One issue is that pyodide is just one particular implementation of a WASM Python build. While for now it is the default implementation there are efforts to get CPython to compile directly to WASM and these approaches may eventually replace Pyodide. For now though pyodide is the de-facto standard and is the only solution that provides convenient APIs installing packages, interacting with the DOM and some limited network access.
Additional information
No response
The text was updated successfully, but these errors were encountered: