Files
colibre/test_aggrid.py
T
Colin Maudry ded5e66ccc fix(backup): nettoyer le fichier temporaire en cas d'erreur dans restore (#89)
Wraps temp file operations in try/except to ensure the temporary database file is always cleaned up, even if an exception occurs during write_snapshot or verify_integrity.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 17:21:28 +02:00

27 lines
576 B
Python

import dash_ag_grid as dag
import pandas as pd
from dash import Dash, html
df = pd.read_csv(
"https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv"
)
app = Dash()
columnDefs = [
{"field": "country", "filter": True},
{"field": "pop", "headerName": "Population"},
{"field": "lifeExp", "headerName": "Life Expectancy", "filter": True},
]
grid = dag.AgGrid(
id="getting-started-filter",
rowData=df.to_dict("records"),
columnDefs=columnDefs,
)
app.layout = html.Div([grid])
if __name__ == "__main__":
app.run(debug=True)