pip install dash will install the three component libraries that make up the core of Dash:
dash_table, as well as the
plotly graphing library.
pip install jupyter-dash if using Jupyter Notebook or Jupter Lab as the development environment.
pip install dash --upgrade
Create and activate a Python virtual environment. Then go to the folder that is created and install the required packages.
python3 -m venv dash_projects source dash_projects/bin/activate
Create a file named
app.py then run the app with
# inport packages import dash import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc import plotly.express as px import pandas as pd # create / instantiate the app app = dash.Dash(__name__) # create the app layout app.layout = html.Div([ html.H1(children='Weather App), html.Div(children= ''' Dash: A web application for Python ''' ) ]) # run the app if __name__ == '__main__': app.run_server(debug=True)