Hello @Eduardo, thanks for you answer and sorry for answering only now. Maybe I didn’t understand. I was using this code you mentionned and it worked well. But I wanted to display my table not with dash_table, but using html.Table.
I found something though, with this post: Display tables in Dash
Now I only have this in the layout:
html.Div(id='display_table')
and this in the app.callback:
@app.callback(
Output('display_table', 'children'),
[Input('selected_product', 'value')]
)
def callback_display_table(product):
ingredients_display = ingredients_data_display[ingredients_data_display["Nom Français"] == product]
return generate_table(ingredients_display)
It’s working fine as you can see here:
Anyway, thank you very much for helping me. I’m learning a lot since I started a few weeks ago, thanks to the guide and this forum.
Alpy