Dash is an open-source framework for building analytical applications, with no Javascript required, and it is tightly integrated with the Plotly graphing library (example). We can use Dash to create detailed data-visualizations to generate insight into large datasets in Python and display it in an existing Flask application which may server other purposes in a website.
Flask is a very popular backend framework for web applications. We will use Flask to handle all the incoming requests from our clients and serve them the necessary HTML content, including the Dash dashboard that you create. This will allow you to create multiple custom dashboards and/or visualizations in your web server.
This workshop was inspired and adapted by concepts and methods introduced in other public tutorials [1, 2].
Follow the steps to get your environments set up for this workshop:
- Download Anaconda for Python and create a new virtual enviornment called dashapp by running the following command:
conda create --name dashapp
. - Activate your virtual environment by running
conda activate dashapp
in your terminal. - Download Flask:
pip install Flask
- Download Dash:
pip install dash
- Download Pandas:
pip install pandas
- Pandas (data manipulation)
- Plotly Express (building custom visualizations)
- Dash (displaying visualizations on a custom Dashboard)
- Flask (building web applications for any use or purpose)
- Jupyter (visualization for fun to explore)
- Stackoverflow (general questions)