Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/IPython/core/__pycache__/displayhook.cpython-39.pyc
Ðазад
a o�h�2 � @ sp d Z ddlZddlZddlZddlZddlmZ ddl m Z mZ ddlm Z G dd� de�ZG dd � d e�ZdS ) zaDisplayhook for IPython. This defines a callable class that IPython uses for `sys.displayhook`. � N)�Configurable)�Instance�Float)�warnc s� e Zd ZdZeddd�Zeddd�Zed�Zd+� fd d � Z e dd� �Zd d� Zdd� Z edd� �Zdd� Zdd� Zdd� ZdZd,dd�dd�Zdd� Zdd � Zd!d"� Zd#d$� Zd-d%d&�Zd'd(� Zd)d*� Z� ZS ).�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�������?N�� c s� t t| �jf d|i|�� d}|dkr2d| _d}n*||k rVd| _d}td| dd� nd| _|| _|| _d\| _| _| _ | j| j| j d�}| jj �|� d S ) 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 �kwargsZcache_size_minZ to_user_ns�� __class__� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/IPython/core/displayhook.pyr $ s&