handlers

handlers#

Treescope handlers for known objects.

Submodules

penzai.treescope.handlers.builtin_atom_handler

Handlers for builtin atom types (e.g. constants or literals).

penzai.treescope.handlers.builtin_structure_handler

Handler for built-in collection types (lists, sets, dicts, etc).

penzai.treescope.handlers.canonical_alias_postprocessor

Handlers for certain "well-known" objects, such as module functions.

penzai.treescope.handlers.function_reflection_handlers

Reflection-based handlers for functions, closures, and classes.

penzai.treescope.handlers.generic_pytree_handler

Pretty-print handlers for generic pytrees.

penzai.treescope.handlers.generic_repr_handler

Handler that falls back to ordinary repr.

penzai.treescope.handlers.hardcoded_structure_handlers

Handles a hardcoded list of dataclass-like structures.

penzai.treescope.handlers.ndarray_handler

Handler for NDArrays.

penzai.treescope.handlers.penzai

Treescope handlers for Penzai's own classes.

penzai.treescope.handlers.repr_html_postprocessor

Handler for any object with a _repr_html_.

penzai.treescope.handlers.shared_value_postprocessor

Postprocessor to annotate repetitions of mutable values.