| Server IP : 35.80.110.71 / Your IP : 216.73.216.52 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/core/__pycache__/ |
Upload File : |
�
}�e�2 � �| � d Z ddlZddlZddlZddlZddlmZ ddl m
Z
mZ ddlm
Z
G d� de� Z G d� d e� Zy)
zaDisplayhook for IPython.
This defines a callable class that IPython uses for `sys.displayhook`.
� N)�Configurable)�Instance�Float)�warnc �� � � e Zd ZdZ edd�� Z edd�� Z ed� Zd� fd� Z e
d� � Zd � Zd
� Z
ed� � Zd� Zd
� Zd� ZdZddd�Zd� Zd� Zd� Zd� Zdd�Zd� Zd� Z� xZS )�DisplayHookz�The custom IPython displayhook to replace sys.displayhook.
This class does many things, but the basic idea is that it is a callable
that gets called anytime user code returns a value.
z1IPython.core.interactiveshell.InteractiveShellABCT)�
allow_nonez-IPython.core.interactiveshell.ExecutionResultg�������?c �v �� t t | �
d d|i|�� d}|dk r
d| _ d}n&||k rd| _ d}t d|z d�� nd| _ || _ || _ d\ | _ | _ | _ | j | j | j d�}| j j j |� y )
N�shell� r z6caching was disabled (min value for cache size is %s).)�
stacklevel� �� r r ��_�__�___� )�superr �__init__�
do_full_cacher �
cache_sizer r r r �user_ns�update)�selfr r �kwargs�cache_size_min�
to_user_ns� __class__s ��:/usr/lib/python3/dist-packages/IPython/core/displayhook.pyr zDisplayHook.__init__$ s� �� �
�k�4�)�@��@��@�����?�!"�D���J�
�.�
(�!"�D���J��I�� �+,�
.� "#�D��$��� ��
�"*����t�w�t�x� �&�&�d�g�g�D�H�H�=�
��
�
���!�!�*�-� c �. � | j j S �N)r �execution_count�r s r! �prompt_countzDisplayHook.prompt_count= s � ��z�z�)�)�)r"