show

Contents

show#

treescope.show(*args, wrap: bool = False, space_separated: bool = True, autovisualize: bool | Autovisualizer | None = None)[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.

  • autovisualize – Optional autovisualizer override. If True, renders using the default autovisualizer (usually an array autovisualizer). If False, disables automatic visualization. If a function or object, uses that autovisualizer. If None (the default), uses the current active autovisualizer (if any) without overriding it.

Raises:

RuntimeError – If IPython is not available.