How to Use Dash Within a Jupyter Notebook?

Problem Formulation: Can you serve a dash app within a Jupyter notebook rather than in a browser?

Answer: Yes!

Plotly created two Github projects that enable the serving of dash apps in a Jupyter notebook.

  • The older jupyterlab-dash project is not actively maintained according to its creators from Plotly. You should use have a look at their replacement project:
  • The newer jupyter-dash project provides you powerful interactive dash functionality within many different types of notebooks such as Jupyter Notebooks, JupyterLab, Visual Studio Code, and even PyCharm Notebooks.
jupterlab example
You can use Jupyter Notebooks from within many different notebooks using jupyter-dash. Image served with permission from here.

Resources