def show_value(self, ignore_exceptions: bool = False):
    """Renders the original tree in IPython, expanding up to the selected nodes.

    This method is intended to visualize a value but emphasizing the selected
    parts, where the selection is used to determine what to focus on by default
    but isn't actually an object we care about.

    This method should only be used when IPython is available.

    Args:
      ignore_exceptions: Whether to catch errors during rendering and show a
        fallback for those subtrees.
    """
    # Import selection_rendering here to avoid a circular import.
    from penzai.core._treescope_handlers import selection_rendering  # pylint: disable=import-outside-toplevel

    selection_rendering.display_selection_streaming(
        self, visible_selection=False, ignore_exceptions=ignore_exceptions
    )
Renders the original tree in IPython, expanding up to the selected nodes.

    This method is intended to visualize a value but emphasizing the selected
    parts, where the selection is used to determine what to focus on by default
    but isn't actually an object we care about.

    This method should only be used when IPython is available.

    Args:
      ignore_exceptions: Whether to catch errors during rendering and show a
        fallback for those subtrees.
    
penzai/core/selectors.py