How to install and use Dash within Jupyter Notebook with JupyterDash?

hello, I have Jupyter Notebooks installed via anaconda on a windows machine.
I have successfully installed the following libraries:
dash, plotly, jupyter-dash.

Then I’m trying to run a script from here,//

import as px
from jupyter_dash import JupyterDash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output

Load Data

df =

Build App

app = JupyterDash(name)
app.layout = html.Div([
html.H1(“JupyterDash Demo”),
id=‘colorscale-dropdown’, clearable=False,
value=‘plasma’, options=[
{‘label’: c, ‘value’: c}
for c in px.colors.named_colorscales()

Define callback to update graph

Output(‘graph’, ‘figure’),
[Input(“colorscale-dropdown”, “value”)]
def update_figure(colorscale):
return px.scatter(
df, x=“total_bill”, y=“tip”, color=“size”,
render_mode=“webgl”, title=“Tips”

Run app and display result inline in the notebook


Which results in the following error:
ConnectionError: HTTPConnectionPool(host=‘’, port=8050): Max retries exceeded with url: /_alive_e04e50f7-8520-4e60-ba70-3d7e28cd97dc (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x000000000D0F3470>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’,))

Does anybody know what my problem is? I have already tried turning off the windows firewall. Thank you.