Your First Dash App – How to Get Started in 4 Minutes or Less

Minute 1: Install Dash

Type the following command in your terminal/shell.

Windows, macOS:

pip install dash

Linux, Ubuntu:

sudo pip install dash

Minute 2: Create Minimal Dash Project File “”

Copy&paste the code into a new file called “” in a folder – with path /path/to/dash_app/

# file

import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objects as go

es = ['']
app = dash.Dash(__name__, external_stylesheets=es)

xs = list(range(30))
ys = [10000 * 1.07**i for i in xs]

fig = go.Figure(data=go.Scatter(x=xs, y=ys))
fig.update_layout(xaxis_title='Years', yaxis_title='$')

app.layout = html.Div(children=[

if __name__ == '__main__':

Minute 3: Run Dash App

Open a terminal or shell in the /path/to/dash_app/ and run python in it:

$ python
Run Dash Terminal

Minute 4: Open Dash App in Your Browser

Copy or click on the IP address and open it in your browser.

Open Dash app in Browser