I used to have a similar Problem, in my case I’m running it in an offline Domino Environment.
If I tried it localy on my pc it worked fine but on the DockerContainer the wrong Url was created.
I Guess may your WebServer adds specific stuff between the actual url.
I fixed it with this, but this has to be adjust to your case:
Go to your App where you want to download the .csv
Look at the Url, maybe smth like this: https://< Domain >/< usr >/Dash/r/notebookSession/< randomhash >/
If you click download and it removes anything from the url, the download can’t work.
It has to be: https://< Domain >/< usr >/Dash/r/notebookSession/< randomhash >/download_excel/ after you click download
You can try to Access the correct url after you clicked the button, even though it may generated the wrong url
Hi,
thanks for this example. I am using Dash in Domino, and I could get this function to work to download the example Excel file. However, I am having trouble passing in my own dataFrame into the download_excel() function. I tried using a Dash callback for input but it doesn’t seem to work, since this function seems to be a Flask function. could you help me with this? Thanks.
Note that you don’t need the callback for the button. If you embed a html.Button as a child element of an html.A component with an href set pressing the button automatically triggers the route.