code: def display(segments: Iterable[Segment], text: str) -> None:
      """Render segments to Jupyter."""
      html = _render_segments(segments)
      jupyter_renderable = JupyterRenderable(html, text)
      try:
          from IPython.display import display as ipython_display
  
          ipython_display(jupyter_renderable)
      except ModuleNotFoundError:
          # Handle the case where the Console has force_jupyter=True,
          # but IPython is not installed.
          pass
  
file_path: rich/rich/jupyter.py
imports: from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Sequence
  from .None import get_console
  from .segment import Segment
  from .terminal_theme import DEFAULT_TERMINAL_THEME
label_desc: Use image node_id 2 for calling a global function with example usage: display(segments, text) without return types