Black Lives Matter. Please consider donating to Black Girls Code today.

How To Build App Without Hardcoding The Data

Hello and thanks for all the hard work. I’ve been going through the tutorials and trying to see if I can incorporate Dash into some of our internal plotting tools.

One thing I noticed in all the tutorials is that there is a step where data is loaded through either hard-coding the values or hard-coding the url where data is located at for download. Is there a way to obtain data to build the plots that the user would interact with more dynamically?

Currently we have a Flask app running and each user will submit values, submit, and values are calculated in the back-end and displayed. I was hoping to be able to generate the Dash app plots with these generated values.

I tried to see if I could use the flask session to pass values around but I was not successful. Perhaps I was doing it wrong.

Thanks!

A few options: