penzai.treescope#
Treescope: Penzai’s interactive HTML pretty-printer and array visualizer.
You can configure treescope as the default IPython pretty-printer using
pz.ts.register_as_default()
# Optional:
pz.ts.register_autovisualize_magic()
pz.enable_interactive_context()
pz.ts.active_autovisualizer.set_interactive(pz.ts.ArrayAutovisualizer())
You can also pretty-print individual values using pz.show
or pz.ts.display
.
See also the pz.ts module for convenient access to the most
commonly-used treescope functions and classes.
Submodules
Treescope's array visualizer. |
|
User-configurable automatic visualization of subtrees. |
|
Registry of certain "well-known" objects, such as module functions. |
|
Fallback definitions for copying non-roundtrippable objects. |
|
Configures the default renderer, and allows reconfiguring it dynamically. |
|
Containers for conveniently rendering multiple objects together. |
|
Definition of components of Treescope's intermediate representation. |
|
Treescope handlers for known objects. |
|
Helper function to compress HTML for saving and displaying. |
|
Utilities for escaping HTML values. |
|
Utilities for summarizing ndarray data. |
|
Renderer objects and handler definitions. |
|
Rendering logic for selections and selected objects in treescope. |
|
Support for using treescope in IPython. |