pygx.views¶
Pluggable rendering for symbolic objects.
views
¶
Pluggable rendering for symbolic objects.
pygx.views defines the abstract View interface and a small registry that
lets external code register custom renderers for symbolic objects (or for any
Python value, via the lifted pg.to_html helper). The shipped backend is
pygx.views.html, which produces a self-contained, interactive HTML
tree-view used by the Symbolic Object inspector.
Common entry points:
view— render a value using the registered view.to_html/to_html_str— HTML-specific shortcuts.view_options— context manager for setting default rendering options (verbosity, max length, etc.) for a scope.NodeFilter— a small predicate type for including or excluding subtrees during rendering.
options: show_root_heading: false show_root_toc_entry: false members_order: source heading_level: 2