
    
!i                    R    S r SSKJr  SSKrSSKJr   " S S\R                  5      rg)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                  h    \ rS rSrSr\R                  SS j5       r\R                  SS j5       rSr	g)	
IPythonEnv   zCAbstract base class that provides a wrapper around IPython methods.c                    g)z.Wrapper around IPython.core.display.display().N selfxs     b/home/james-whalen/.local/lib/python3.13/site-packages/google/generativeai/notebook/ipython_env.pydisplayIPythonEnv.display            c                    g)a3  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_htmlIPythonEnv.display_html$   r   r   r	   N)r   r   returnNone)r   strr   r   )
__name__
__module____qualname____firstlineno____doc__abcabstractmethodr   r   __static_attributes__r	   r   r   r   r      s7    M= = 	 r   r   )r   
__future__r   r   typingr   ABCr   r	   r   r   <module>r#      s%    # 
  r   