Stefan Johansson
Stefan Johansson
Use Input instead (change interval to n_intervals): `@app.callback(Output('historical-graph', 'figure'), [Input(component_id='sentiment_term', component_property='value'), Input('historical-update', 'n_intervals')])` Also add n_intervals to the Interval: `dcc.Interval( id='sentiment-pie-update', interval=60*1000, n_intervals=0 ),`
> > Use Input instead (change interval to n_intervals): > > `@app.callback(Output('historical-graph', 'figure'), [Input(component_id='sentiment_term', component_property='value'), Input('historical-update', 'n_intervals')])` > > Also add n_intervals to the Interval: > > `dcc.Interval( id='sentiment-pie-update', interval=60*1000,...
I hade the same error running on a Mac with Python 3.8. The solution was to add the current path to the code. ```python import os import sys # set...