Table with click callback

Hi, I whant to create a table with click callback, but instead of clicking only one cell, I would like to click and select various.

how can I do this with this example:

from dash import Dash, Input, Output, callback, dash_table
import pandas as pd
import dash_bootstrap_components as dbc

df = pd.read_csv('')

app = Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])

app.layout = dbc.Container([
    dbc.Label('Click a cell in the table:'),
    dash_table.DataTable(df.to_dict('records'),[{"name": i, "id": i} for i in df.columns], id='tbl'),

@callback(Output('tbl_out', 'children'), Input('tbl', 'active_cell'))
def update_graphs(active_cell):
    return str(active_cell) if active_cell else "Click the table"

if __name__ == "__main__":


you can use the property selected_cells instead of active_cell in your callback.

Hi, thanks, is there any way to select cell by cell (without selecting the cells between)?