active_expansion_strategy

active_expansion_strategy#

treescope.active_expansion_strategy: context.ContextualValue[Callable[[rendering_parts.RenderableTreePart], None]]#

The default expansion strategy to use when rendering a tree to HTML.

Expansion strategies are used to figure out how deeply to unfold an object by default. They should operate by setting the expand states of the foldable nodes inside the object.