def show(*args, wrap: bool = False, space_separated: bool = True):
  """Shows a list of objects inline, like python print, but with rich display.

  This is a compatibility wrapper for `treescope.show`, which also formats
  objects implementing the old `__penzai_repr__` method. Consider using
  `treescope.show` directly instead.

  Args:
    *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.
  """
  with treescope.active_renderer.set_scoped(
      _active_renderer_extended_with_penzai_repr()
  ):
    treescope.show(*args, wrap=wrap, space_separated=space_separated)
Shows a list of objects inline, like python print, but with rich display.

  This is a compatibility wrapper for `treescope.show`, which also formats
  objects implementing the old `__penzai_repr__` method. Consider using
  `treescope.show` directly instead.

  Args:
    *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.
  
penzai/treescope/_compatibility_setup.py