Does anyone know what this error means?
Traceback (most recent call last):
File "Dash_File.py", line 857, in <module>
figure= callback_func(n_clicks=0, value="Spikes"),
File "C:\Users\kayvo\anaconda3\lib\site-packages\dash\dash.py", line 1006, in add_context
output_spec = kwargs.pop("outputs_list")
KeyError: 'outputs_list'
They are giving me an error for this:
dcc.Graph(
id='Concrete_Health_method',
figure= callback_func(n_clicks=0, value="Spikes"),
#calculator_1.graph_concrete(df2)
style ={'display': 'inline-block'})
])
The figure specifically
I donât know what is wrong with having it defined like that
If anyone wants to see my callback_func, then here it is:
#Callback for submitting everything.
@app.callback(Output('target', 'children'), Input('submit', 'n_clicks'), Input('Categories', 'value'))
def callback_func(n_clicks, value):
if (n_clicks != 0):
if os.path.exists(UPLOAD_DIRECTORY):
for file in uploaded_files():
dfs = pd.read_excel(file, sheet_name=value)
# Define if we analyzing Premium or Cut Spikes
# Define if the data is reliable
#Calculation data below to display graph