o
    ñ;—i?  ã                   @   s   d dl Z dd„ ZdS )é    Nc                  C   sB   zt j d¡} | du rW dS |  ¡ }|duW S  ty    Y dS w )z™
    Detect if we're running in an interactive IPython session.

    Returns True for IPython shells (including Jupyter notebooks), False otherwise.
    ÚIPythonNF)ÚsysÚmodulesÚgetÚget_ipythonÚ	Exception)ÚipythonÚshell© r
   úB/home/ubuntu/.local/lib/python3.10/site-packages/modal/_ipython.pyÚis_interactive_ipython   s   
ÿr   )r   r   r
   r
   r
   r   Ú<module>   s   