RenderableTreePart#
- class treescope.rendering_parts.RenderableTreePart[source]#
Bases:
ABC
Abstract base class for a formatted part of a foldable tree.
WARNING: The details of this interface are an implementation detail, and are subject to change.
Formatted objects are produced by treescope handlers from the original Python objects, and know how to convert themselves to a concrete renderable representation.
Renderable tree parts can appear either expanded or collapsed, depending on the status of their parent foldable tree nodes. They are responsible for:
computing the relevant sizing metrics for each of these display modes,
tracking any children that are foldable tree nodes themselves,
and rendering themselves to HTML or text form.
Inherited Methods
(expand to view inherited methods)
__init__
()