Launching Plotly Dash with Jupyter

Chase Holtan
1 min readJul 19, 2022

--

Launching PlotlyDash App with Jupyter Lab

5 — Quick steps to launching your Plotly Dash app with Jupyter.

1 — Create a project directory.

  • Open finder and create a folder where you would like to save your project.

2 — Open terminal from this directory.

  • Right click on the folder. Scroll down to services, then click New Terminal at Folder.

3 — Create and activate your virtual environment.

  • In your termianl type the code below. Note, you can define your environment name by replacing it with NewEnvironment.
python -m venv NewEnvironment

4 — Install required libraries and launch Jupyter

  • Type the following into your termianl to install the required libraries.
pip install pandas
pip install plotly
pip install dash
pip install jupyter lab
#now launch Jupyter Lab
jupyter lab

5 — Run your Dash App

  • Once Jupyter Lab has been launched in your default browse Copy and paste your app code and execute or use the demo code below.
  • Note: Change how your app is veiwed within your notebook by using the code below.
# view your app on its own browser page 
app.run_server(mode='external')
# view your app on its own jupyter lab tab
app.run_server(mode='jupyterlab')
# view your app below your code
app.run_server(mode='inline'

--

--