Download raw data

HI,

I have the same problem… did you solve it?

Best,

I wrote a download component some time ago. Here is a small example,

2 Likes

This is great, thank you so much! I’d managed to get the CSV download working in Chrome but IE was not having it. This appears to solve my issue.

Did you ever solve this?

1 Like

Used urlllib.parser.qoute(); however, I also have the same problem!

1 Like

Did you try the Download component?

1 Like

dash-extensions in the below link helped to solve the problem :slight_smile: https://stackoverflow.com/questions/61784556/download-csv-file-in-dash/61814287#61814287

1 Like

Yes, got solved! Thanks for sharing!

1 Like

I faced the same issue of downloading the HTML component instead of the .CSV file.
In my case the issue was the following: the callback updates the HREF, but at the same time (this is crucial) I was clicking on the download A tag in my dashboard. Unluckily, the download happens before the HREF gets callbacked, so you never download the updated href!! If you click twice, however, you should download the correct CSV.

Notice that in Chris code, the HREF is updated BEFORE clicking on the actual A tag in the dashboard.

Based on this observation, you should be able to make suitable changes! I hope this is clear…!

Hi there, I am pretty new to dash and I have just used the dcc.Checklist and wondering how I can download the completed checklist as a png or at least provide a link to the download of the checklist? Thanks for your help!

Wow, works so perfectly even for over 1000 rows (250KB). Awesome!

1 Like