Suppress callback exceptions True not working dash

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.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:


    Output('pcontainer', 'children'),

    Input('all_ids', 'value'),



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
This ID was used in the callback(s) for Output(s):

any suggestions?

i just had to (completly) close the link, interreupt the kernel und run aigin :slight_smile:

you should use suppress_callback_exceptions and prevent_initial_call together,
like this:

app = Dash(__name__,suppress_callback_exceptions=True)
@app.callback(Output("img", "src"), Input("calendar", "date"), prevent_initial_call=True)

see more in dash document