Open jtpio opened 2 years ago
Since there is a JupyterLab extension for Dash: https://github.com/plotly/jupyter-dash
Not sure it's been converted to a prebuilt extension for JupyterLab 3 though.
@jtpio I think this should be doable, but it does mean we'll likely need to have two instances of Pyodide running on the page, should not be an issue with WebWorker Pyodide instances! And you're right, a federated extension would probably be the best way to get this working. I would like to finish updating Pyodide to 18.x and Dash to 2.x, as well as set up the CDN for the WebDash distribution, before embarking on this journey. Once that's done, I'll come seeking advice on the best way to integrate with JLite 😄
it does mean we'll likely need to have two instances of Pyodide running on the page,
Yeah I think so: 1 for the kernel and 1 for the dash server.
For reference this would also require some changes in JupyterLite: https://github.com/jupyterlite/jupyterlite/issues/390
Since there is a JupyterLab extension for Dash: https://github.com/plotly/jupyter-dash
How feasible would it be to integrate WebDash with JupyterLite?
Maybe there would need to be a new server federated extension (https://jupyterlite.readthedocs.io/en/latest/extensions.html) that would handle running the Dash server in the browser?