# Html.table(\[\]) number of ids depending of the data

**URL:** <https://community.plotly.com/t/html-table-number-of-ids-depending-of-the-data/47899>\
**Category:** Dash Python\
**Created:** [December 5, 2020, 3:18pm UTC](https://community.plotly.com/t/html-table-number-of-ids-depending-of-the-data/47899 "2020-12-05T15:18:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Alpy](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Alpy](https://community.plotly.com/u/Alpy)\
**Post date:** [December 9, 2020, 2:33pm UTC](https://community.plotly.com/t/html-table-number-of-ids-depending-of-the-data/47899/5 "2020-12-09T14:33:37Z")

</div>

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](https://community.plotly.com/t/display-tables-in-dash/4707/12)

Now I only have this in the layout:

```auto
html.Div(id='display_table')

```

and this in the app.callback:

```auto
@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:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/a/a537b0b755f14a7f579dfdc0165fd5b0cf1a07ba.png)

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

---

_[View the full topic](https://community.plotly.com/t/html-table-number-of-ids-depending-of-the-data/47899)._
