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,//medium.com/plotly/introducing-jupyterdash-811f1f57c02e

import plotly.express 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 = px.data.tips()

Build App

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

Define callback to update graph

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

Run app and display result inline in the notebook

app.run_server(mode=‘inline’)

Which results in the following error:
ConnectionError: HTTPConnectionPool(host=‘127.0.0.1’, 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.