autovisualize

autovisualize#

User-configurable automatic visualization of subtrees.

This module provides a quick but flexible interface for customizing the output of Treescope by replacing subtrees by rendered figures. The intended use case is to make it easy to generate visualizations for arrays, parameters, or other information, even if they are deeply nested inside larger data structures.

This module also defines a particular automatic visualizer that uses Arrayviz to visualize all arrays in a tree, which can be useful for exploratory analysis of models and data.

Classes

Autovisualizer

Protocol for autovisualizers.

ChildAutovisualizer

Used by autovisualizers to switch to a different autovisualizer.

CustomTreescopeVisualization

Used by autovisualizers to directly insert Treescope content.

IPythonVisualization

Used by autovisualizers to replace a subtree with a display object.

Functions

use_autovisualizer_if_present(node, path, ...)

Treescope wrapper hook that runs the active autovisualizer.

Module Attributes

active_autovisualizer

The active autovisualizer to use when rendering a tree to HTML.