webdash icon indicating copy to clipboard operation
webdash copied to clipboard

Integrate with JupyterLite

Open jtpio opened this issue 4 years ago • 3 comments

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 avatar Oct 12 '21 18:10 jtpio

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 avatar Oct 12 '21 18:10 jtpio

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

ibdafna avatar Oct 14 '21 05:10 ibdafna

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

jtpio avatar Oct 14 '21 18:10 jtpio