🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

Loop within dbc bootstrap container

I’m looping through figs[] creating a two column layout per row.
This works fine except it repeats the graph twice because I’m not able to increment i in order to display each chart consecutively. Can someone enlighten me on how to do this? (code brevity pasted)

figs.append(dict(data=data, layout=layout))
col_count = [0, 1]
body = dbc.Container(
    [
        dbc.Row(
            [                 
                dbc.Col(
                    [
                        html.H4('ES'+str(i)),
                        dcc.Graph(figure=figs[i]) # **<- loops twice as intended, but need to increment i here somehow, or create another loop to increment graph??**
                    ],
                    md=6
                )
                **for col in col_count**
            ]
        )
        **for i, value in enumerate(figs)**
    ]
)