Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use dash within Jupyter notebook or JupyterLab?

Is it possible to have a dash app within a Jupyter Notebook, rather than served up and viewed in a browser?

My intention is to link graphs within a Jupyter notebook so that hovering over one graph generates the input required for another graph.

like image 203
bluprince13 Avatar asked Aug 03 '17 16:08

bluprince13


People also ask

Can you use dash in Jupyter?

Allow use of plotly dash applications within Jupyter notebooks, with the management of both session and internal state.

How do you make a dash in Jupyter notebook?

To get started right away, install the jupyter-dash package using pip… Then, copy any Dash example into a Jupyter notebook cell and replace the dash. Dash class with the jupyter_dash. JupyterDash class.

How do I leave a dash in Jupyter notebook?

where Ctrl + C is working or if you prefer to stick to Jupyter Notebook you can terminate the execution by clicking in the Jupyter Notebook menu Kernel --> Restart , change the code and run the cell again.


1 Answers

(Disclaimer, I help maintain Dash)

See https://github.com/plotly/jupyterlab-dash. This is a JupyterLab extension that embeds Dash within Jupyter.

Dash App inside Jupyter

Also see alternative solutions in the Dash Community Forum like the Can I run dash app in jupyter topic.

like image 147
Chris P Avatar answered Sep 20 '22 21:09

Chris P