CellTour API#
Bases: DriverTour
Simplified tour widget for marimo notebooks.
Wraps DriverTour with cell-aware step helpers so you can reference
marimo cells by index or data-cell-name attributes.
Examples:
Using cell indices:
tour = CellTour(steps=[
{"cell": 0, "title": "Imports", "description": "Load libraries"},
{"cell": 2, "title": "Processing", "description": "Data transformation"},
])
tour
Using cell names (requires naming cells in marimo):
tour = CellTour(steps=[
{"cell_name": "imports", "title": "Imports", "description": "Load libraries"},
{"cell_name": "process", "title": "Processing", "description": "Transform data"},
])
tour
Create a CellTour widget.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
steps
|
Sequence[dict]
|
List of step dictionaries with cell, title, description keys. |
()
|
auto_start
|
bool
|
Start tour automatically on render. |
False
|
show_progress
|
bool
|
Show step progress indicator. |
True
|
**kwargs
|
Any
|
Forwarded to |
{}
|
Source code in wigglystuff/cell_tour.py
Synced traitlets#
| Traitlet | Type | Notes |
|---|---|---|
steps |
list[dict] |
DriverTour-style steps (CellTour inputs are normalized). |
auto_start |
bool |
Start tour automatically on render. |
show_progress |
bool |
Show progress indicator when true. |
active |
bool |
Whether the tour is currently running. |
current_step |
int |
Index of the active step. |