This is an example of an app built with Plotly's Dash framework. It's an exploratory app based on the Bigfoot Sightings dataset I hosted on data.world. It demonstrates several plots (including a map), a grid layout built with Bootstrap, interactions with an input field, and caching.
There's also a Procfile for deploying on to Heroku. That does require a little special sauce in the code - I've tried to be clear in the comments where that is so you can ignore it if you want.
Create an environment with virtualenv or conda. For conda,
conda create --name bigfoot-sightings-dash python=3.6
source activate bigfoot-sightings-dash
Install the stuff in requirements.txt
.
pip install -r requirements.txt
This app requires a mapbox key for the map to render.
It needs to be assigned to the MAPBOX_KEY
environment variable.
The code will also read from a .env
file.
Launch the app.
python app.py