I’ve been trying to use a button returned after a file is loaded to generate a graph, but the problem is that there is a
AttributeError: 'Div' object has no attribute 'keys', whenever I try to use the button in the callback
@app.callback(Output('graph-div', 'children'), [Input('output-data-upload', 'children')]) def draw_graph(n_clicks): pass
The section of the callback that returns the button is
return html.Div([ u'✅ Data successfully loaded and appears ready', #TODO: Add callback for button html.Button('Draw Graphs', id='draw-button'), ])
Any help would be really appreciated, I’ve been drawing a blank after looking around at forums, and trying other ways of accessing the button!