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

Dash data table download

Hello Team,

I am currently using the below script to download the data table from the dash which i created. The download is working fine however when i hosted the Dash and when i try to click the download button through another system, the file is being downloaded at the host computer and not at user computer. I apologize if my question seems silly as i am very new to Dash & python.

html.Div(id=“output-1”,children=“Press button to save data at your desktop”)


def selected_data_to_csv(nclicks,table1):
if nclicks == 0:
raise PreventUpdate

return “Data Submitted”

Kindly assist.