NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #2683 most downloaded on PyPI
Treescope: An interactive HTML pretty-printer for ML research in IPython notebooks.
Latest stable
0.1.11
Last release 12 days ago
10 Nov 2026
Ships unpredictably
gaps range from 9 days to 1.3 years
Nearly every release is documented
notes for 12 of 12 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
12 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
Treescope renderings now support a dark theme, configurable via treescope.theme (#74, #75, #76)
treescope.theme (#74, #75, #76)
"light" (the default) and "dark" select a theme explicitly."auto" matches the theme of the page displaying the rendering, based on the text color it inherits, and falls back to light if that can't be detected.treescope.render_array now raises a clear error for empty arraysIntEnum, IntFlag, str enums) now render as enum members instead of their raw values, and combinations of enum.Flag members no longer raise an erroraround_zero=Falseaxis_item_labels and axis_labels in treescope.render_array now ignore axis names that aren't in the array, as documentedrelative_alias_names("magic") giving globals priority over localstreescope.figures.text_on_color when vmin == vmaxtreescope.render_array and ArrayAutovisualizer now raise an error for zero edge items, for out-of-range axis positions in label dicts, and for non-finite vmin/vmax, instead of crashing or failing to renderYour coding agent can read these notes before it upgrades. Set up the MCP server →
Fixes incompatibilities with JAX v0.7.0
New configuration option abbreviation_threshold that abbreviates collapsed objects to prevent extremely long lines (idea from #53, implemented in #56)
abbreviation_threshold that abbreviates collapsed objects to prevent extremely long lines (idea from #53, implemented in #56)
abbreviation_threshold=1 to treescope.basic_interactive_setup or by modifying the config setting manually (see the docs or the PR for details).requires_grad info (from #51, implemented in #59)Fixed an error when rendering new-style JAX PRNG keys (with extended dtypes) (#52, #54)
Added handlers for the new C-based JAX pytree classes (https://github.com/jax-ml/jax/pull/24906), which are no longer dataclasses. The new handlers pr
uv lockfile to use newer package versions when setting up the development environment and running tests.Rendering JAX arrays is now much faster, especially for small device arrays
render_array to correctly support re-ordering rows and columns to match documented behavior (#49)jax.tree_util.GetAttrKey, making it robust to future planned changes in JAX (#48)uv lockfile and can be easily installed using the uv package manager.pyink), linting (via pylint), and type annotations (via pytype) are now run on every PR.pyink and pylint are configured to automatically run when editing the project in VSCode.Removed check for deprecated named_shape attribute on jax.ShapeDtypeStruct, since this attribute is being removed from JAX.
named_shape attribute on jax.ShapeDtypeStruct, since this attribute is being removed from JAX.Figure rendering and automatic visualization:
IPythonVisualization outputs when replace=FalsePmapSharding shardingscollections.UserDict and subclassesrender_array and ArrayAutovisualizer now accept a pixels_per_cell argument to customize the initial zoom level of array renderings.
render_array and ArrayAutovisualizer now accept a pixels_per_cell argument to customize the initial zoom level of array renderings.prefers_row/prefers_column in ArrayAutovisualizer.isposinf/isneginf primitives, allowing it to be used with the "mps" backend (Apple silicon).__repr__ implementations.Fixed rendering of PyTorch GPU tensors
_repr_mimebundle_ for types that define itAdded the autovisualize keyword argument to treescope.show and treescope.display to allow customizing the automatic visualizer on a per-call basis, al
autovisualize keyword argument to treescope.show and treescope.display to allow customizing the automatic visualizer on a per-call basis, along with a few more configuration options.%%autovisualize True and %%autovisualize False for the %%autovisualize magic.torch.nn.Sequential rendering.Initial release of the standalone Treescope pretty-printer.
Initial release of the standalone Treescope pretty-printer.
Treescope was originally designed as the pretty-printer for the Penzai neural network library, but has been moved to its own repository so that it can be installed and used independently. See the commit history for Penzai for earlier versions of Treescope.
Changes relative to the penzai.treescope submodule of Penzai release 0.1.5:
penzai.treescope namespace and into treescope.__penzai_repr__ to __treescope_repr__.NDArrayAdapter protocol, enabling it to support non-JAX arrays._internal subpackage, and added new public construction methods for various rendering components.One column per month.