Ë
    ümxi–  ã                  óR   — d Z ddlmZ ddlZddlmZ  G d„ dej                  «      Zy)aD  Abstract IPythonEnv base class.

This module provides a layer of abstraction to address the following problems:
1. Sometimes the code needs to run in an environment where IPython is not
available, e.g. inside a unittest.
2. We want to limit dependencies on IPython to code that deals directly with
the notebook environment.
é    )ÚannotationsN)ÚAnyc                  ó\   — e Zd ZdZej
                  dd„«       Zej
                  dd„«       Zy)Ú
IPythonEnvzCAbstract base class that provides a wrapper around IPython methods.c                 ó   — y)z.Wrapper around IPython.core.display.display().N© ©ÚselfÚxs     ú_/home/htdocs/ttos/venv/lib/python3.12/site-packages/google/generativeai/notebook/ipython_env.pyÚdisplayzIPythonEnv.display    ó   � ó    c                 ó   — y)as  Wrapper to display HTML.

        This method is equivalent to calling:
          display.display(display.HTML(x))

        display() and HTML() are combined into a single method because
        display.HTML() returns an object, which would be complicated to model with
        this abstract interface.

        Args:
          x: An HTML string to be displayed.
        Nr   r	   s     r   Údisplay_htmlzIPythonEnv.display_html$   r   r   N)r   r   ÚreturnÚNone)r   Ústrr   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚabcÚabstractmethodr   r   r   r   r   r   r      s7   „ ÙMà×Ñò=ó ð=ð 	×Ñòó ñr   r   )r   Ú
__future__r   r   Útypingr   ÚABCr   r   r   r   ú<module>r      s%   ðñõ #ã 
Ý ô�—‘õ r   