August 2019
Beginner
482 pages
12h 56m
English
Once the dashboard is working and looks good, we can discuss its deployment details. For now, all of the data is internalized in the dashboard itself, which makes the specification large and a little hard to update. Let's link the chart to the external CSV file we generated with Luigi and stored on the S3 bucket. We could use the URL (path to the file) from the beginning; it's just easier to be able to open and investigate the dataset. Copy the URL to the dataset and override the attribute:
url = 'https:/path/to/your/dataset.csv'dash.data = url
Make sure it is still working! Now, we can write the dashboard to the HTML, as follows:
dash.save('chart.html')
As we discussed in Chapter 12, Data Exploration ...