Module 'dash_core_components' has no attribute 'Download'

I tried to use the dcc.Download component as described in https://dash.plotly.com/dash-core-components/download but seem to be hit with the error described in the title. What could be the issue?

I have imported the following in my code as well: dash, dash_core_components as dcc, dash_html_components as html, from dash.dependencies import Input, Output, State

I think it has not yet been published, so until it is, you would need to import it from dash-extensions instead (:

1 Like

Hi @Emil , just a quick follow-up. When dcc.Download is published, what will happen to dash-extensions? Will I still be able to use the Download component from dash-extensions or will I have to update the code accordingly?

I expect to keep it in dash-extensions for some time at least :slight_smile:

1 Like