Path 1: 6 calls (1.0)

[] (6)

'' (6)

ModuleNotFoundError (6)

1def display(segments: Iterable[Segment], text: str) -> None:
2    """Render segments to Jupyter."""
3    html = _render_segments(segments)
4    jupyter_renderable = JupyterRenderable(html, text)
5    try:
6        from IPython.display import display as ipython_display
7
8        ipython_display(jupyter_renderable)
9    except ModuleNotFoundError:
10        # Handle the case where the Console has force_jupyter=True,
11        # but IPython is not installed.
12        pass