examples/python/table_blueprints/README.md
Creates tables with embedded blueprint metadata. Each row links to a recording segment URI; the viewer can load those recordings on demand and render row previews with the embedded blueprint views.
The example also adds a boolean marker_flag column and names it in the embedded table blueprint. That column is the per-row flag state: the Viewer renders it as a clickable flag on each grid card, updates the visible table immediately when toggled, and upserts the changed boolean value back to the server using the rerun:is_table_index column as the row key. The column is still regular table data, so its saved values are what you get back when you query the table later.
Table cards and blueprints are experimental. Enable
Settings > Experimental > Table cards and blueprints in the viewer.
This sample contains a small Dataset-specific customization section near the top of table_blueprints.py. Please edit extract_dataset_property_columns and make_dataset_blueprints before using it with your own data: the defaults are geared towards RRDs from the DROID dataset and assume that segment-table schema, timeline, entity paths, coordinate frame, and card-title column.
The sample has two run modes:
Without --url, the script starts a temporary local Rerun server, serves a directory of .rrd files as a dataset named local, creates the demo tables in that local server, and keeps running until you press Enter.
Run without arguments to serve the checked-in sample files from tests/assets/rrd/sample_5:
pip install -e examples/python/table_blueprints
table_blueprints
Or pass any dataset directory containing .rrd files:
table_blueprints /path/to/dataset
Use --port if you want the local server to listen on a specific port:
table_blueprints /path/to/dataset --port 9876
Via pixi/uv:
pixi run py-build && pixi run uv run examples/python/table_blueprints/table_blueprints.py /path/to/dataset
With --url, the script does not start a server. Instead, it connects as a client to an existing Rerun server or catalog, looks up the dataset by name, and creates the demo tables there.
table_blueprints <dataset-name> --url rerun+https://…