How to Use Dash Within a Jupyter Notebook?

πŸ“– Further Learning: For a complete guide on how to build your beautiful dashboard app in pure Python, check out our best-selling book Python Dash with San Francisco Based publisher NoStarch.

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


If you’re interested in learning more about how to create beautiful dashboard applications in Python, check out our new book Python Dash.

You’ve seen dashboards before; think election result visualizations you can update in real-time, or population maps you can filter by demographic.

With the Python Dash library, you’ll create analytic dashboards that present data in effective, usable, elegant ways in just a few lines of code.

Get the book on NoStarch or Amazon!