| Server IP : 35.80.110.71 / Your IP : 216.73.216.143 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�- � �| � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZ ddlm
Z
ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZ dd�Zd
� Z ej4 d� Zdd�Zd� Zdd�Zdd�Zdd�Z dd�Z!d� Z"ejF dk( r'ejH jK dd� dk7 rddl&Z&d� Z'yd� Z'y) z�
Paging capabilities for IPython.core
Notes
-----
For now this uses IPython hooks, so it can't be in IPython.utils. If we can get
rid of that dependency, we could move it there.
-----
� N)�UnsupportedOperation)�Path)�get_ipython)�display)�TryNext)�chop)�system)�get_terminal_size)� py3compatc � � t | t � r| }n(|r"dj | j � |d � } d| i}t |d�� y)z1Just display, no paging. screen_lines is ignored.�
N�
text/plainT)�raw)�
isinstance�dict�join�
splitlinesr )�strng�start�screen_lines�datas �3/usr/lib/python3/dist-packages/IPython/core/page.py�display_pager $ sF � ��%�������J�J�u�/�/�1�%�&�9�:�E��u�&���D�d�� c � � � � fd�S )zRWrap a pager func to strip the `self` arg
so it can be called as a hook.
c � �� �|i |��S �N� )�self�args�kwargs� page_funcs �r �<lambda>zas_hook.<locals>.<lambda>4 s �� ��D�)C�F�)C� r r )r"