Tree¶
- marimo.tree(items: list[Any] | tuple[Any] | dict[Any, Any], label: str | None = None) Html ¶
Render a nested structure of lists, tuples, or dicts as a tree.
Example.
mo.tree(["entry", "another entry", {"key": [0, 1, 2]}], label="A tree.")
Args.
items
: nested structure of lists, tuples, or dictslabel
: optional text label for the tree
Returns.
Html
object