display

Contents

display#

penzai.treescope.treescope_ipython.display(value: Any, ignore_exceptions: bool = False, roundtrip_mode: bool = False)[source]#

Displays a value as an interactively foldable object.

Uses the default renderer. See default_renderer.to_foldable_html for details.

Parameters:
  • value – Value to fold.

  • ignore_exceptions – Whether to catch errors during rendering of subtrees and show a fallback for those subtrees.

  • roundtrip_mode – Whether to start in roundtrip mode.

Raises:

RuntimeError – If IPython is not available.