show

Contents

show#

penzai.treescope.treescope_ipython.show(*args, wrap: bool = False, space_separated: bool = True)[source]#

Shows a list of objects inline, like python print, but with rich display.

Parameters:
  • *args – Values to show. Strings show as themselves, like python’s print. Anything renderable by Treescope will show as it’s treescope representation. Anything with a rich IPython representation will show as its IPython representation.

  • wrap – Whether to wrap at the end of the line.

  • space_separated – Whether to add single spaces between objects.

Raises:

RuntimeError – If IPython is not available.