Hi Here,
i’m using value from an id from a callback (well not in the layout)
i recieved the errror that i have to set suppress_callback_exceptions=True to be able to do that.
Here an example:
app = dash.Dash(__name__,suppress_callback_exceptions=True,external_stylesheets=['./assets/stylesheet.css'])
app.layout[...
@app.callback(Output('list_ids', 'children'),
[Input('table', 'derived_virtual_data')],)
def get_list_ids(rows):
df = pd.Dataframe(rows)
full_list = dcc.Dropdown(id='all_ids', options=[{'label': name, 'value':name} for name in df['name'].drop_duplicates().to_list(), value=None)
return full_list
so i make my dropdown
now i tried:
@app.callback(
Output('pcontainer', 'children'),
Input('all_ids', 'value'),
prevent_initial_call=True
)
def show_name(name)
if name is not None:
returun html.Div('ids= {}'.format(name))
it already works, so when i choose a name (or names) i can see them in the ouput… But however i’m still seeing this error:
If you are assigning callbacks to components that are
generated by other callbacks (and therefore not in the
initial layout), you can suppress this exception by setting
suppress_callback_exceptions=True
.
This ID was used in the callback(s) for Output(s):
plot_container.children
any suggestions?