§
    é˜ºh–  ã                  óP   — d Z ddlmZ ddlZddlmZ  G d„ dej        ¦  «        ZdS )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                  óV   — e Zd ZdZej        d
d„¦   «         Zej        dd„¦   «         Zd	S )Ú
IPythonEnvzCAbstract base class that provides a wrapper around IPython methods.Úxr   ÚreturnÚNonec                ó   — dS )z.Wrapper around IPython.core.display.display().N© ©Úselfr   s     úp/var/www/html/services/rag-service/venv/lib/python3.11/site-packages/google/generativeai/notebook/ipython_env.pyÚdisplayzIPythonEnv.display    ó   € € € ó    Ústrc                ó   — dS )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   r   r	   )r   r   r   r	   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚabcÚabstractmethodr   r   r   r   r   r   r      s`   € € € € € ØMÐMàÔð=ð =ð =ñ Ôð=ð 	Ôðð ð ñ Ôðð ð r   r   )r   Ú
__future__r   r   Útypingr   ÚABCr   r   r   r   ú<module>r      st   ððð ð #Ð "Ð "Ð "Ð "Ð "à 
€
€
€
Ø Ð Ð Ð Ð Ð ðð ð ð ð �”ñ ô ð ð ð r   