treescope.handlers#
Treescope rendering handlers, for use in renderer configurations.
These handlers are responsible for implementing each of the steps of the default Treescope renderer, and can be used individually to build custom renderer configurations.
Functions
|
Treescope wrapper hook that runs the active autovisualizer. |
|
Renders basic builtin Python types. |
|
Rewrites objects to use well-known aliases when known. |
|
Renders a type by looking it up in the global handler registry. |
|
Renders a type by calling its |
|
Renders code objects using source-code reflection and closure inspection. |
|
Generic foldable fallback for an unrecognized pytree type. |
|
Builds a foldable from its repr. |
|
Appends rich HTML representations of objects that have them. |
|
Wrapper hook to check for and annotate shared values. |
Returns a context manager for the shared value context. |