SelectedNodeTracker#
- class penzai.treescope.selection_rendering.SelectedNodeTracker[source]#
Bases:
object
Tracks the set of selected nodes, and makes sure we render them correctly.
- Variables:
selected_node_paths (set[tuple[Any, ...]]) – The set of key paths for selected nodes.
rendered_node_paths (set[tuple[Any, ...]]) – The set of key paths we have rendered.
visible_boundary (bool) – Whether we should actually visualize the boundary. If False, inserts boundary tags for layout purposes but does not actually modify the rendered HTML tree.
Methods
__init__
(selected_node_paths, ...)Attributes
selected_node_paths
rendered_node_paths
visible_boundary