opencadc / science-platform

Science Platform Infrastructure
GNU Affero General Public License v3.0
15 stars 29 forks source link

Feature request: Support for dashboard deployment in local browser #377

Open drtobybrown opened 2 years ago

drtobybrown commented 2 years ago

Launching interactive dashboards as web apps from the notebook is not currently possible (e.g., plotly, explainerdashboard). I'm not sure what's involved but this would be a great feature to have...

brianmajor commented 2 years ago

bokeh is another example--it tries to open a browser to go to localhost:80 (or some other port).

sfabbro commented 1 year ago

dask and ray are other examples of proxy dashboards

drtobybrown commented 1 year ago

Dask's distributed scheduler uses bokeh to provide an interactive dashboard provided with live monitoring of computations. Here's the Dask dashboard diagnostic docs page that has some more info on the dashboard, and how to set up on remote clusters. e.g.,

when starting a scheduler on your local machine the dashboard will be served at http://localhost:8787/status. You can type this address into your browser to access the dashboard, but may be directed elsewhere if port 8787 is taken. You can also configure the address using the dashboard_address parameter (see LocalCluster).

There is also a JupyterLab Dask extension that shows the dash integrated as a pane in your JLab session.

There are several other documented parameters in the LocalCluster class that might help in setting this up. I'm happy to be a guinea pig.