ibdafna / webdash

WebAssembly powered Plotly Dash running in the browser
webdash-wine.vercel.app
BSD 3-Clause "New" or "Revised" License
145 stars 9 forks source link

Integrate with JupyterLite #19

Open jtpio opened 2 years ago

jtpio commented 2 years ago

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?

jtpio commented 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.

ibdafna commented 2 years ago

@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 😄

jtpio commented 2 years ago

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