← Back
Editing: payloadpage.cpython-311.pyc
� �@�c� � �, � d Z ddlZddlmZ dd�Zd� ZdS )z A payload based version of page.� N)�get_ipythonc �� � t d|� � }t � � }t | t � � r| }nd| i}t d||�� � }|j � |� � dS )aj Print a string, piping through a pager. This version ignores the screen_lines and pager_cmd arguments and uses IPython's payload system instead. Parameters ---------- strng : str or mime-dict Text to page, or a mime-type keyed dict of already formatted data. start : int Starting line at which to place the display. r z text/plain�page)�source�data�startN)�maxr � isinstance�dict�payload_manager� write_payload)�strngr �screen_lines� pager_cmd�shellr �payloads �:/usr/lib/python3/dist-packages/IPython/core/payloadpage.pyr r sy � � ��5�M�M�E��M�M�E��%���� &�����u�%���� �� � � �G� ��'�'��0�0�0�0�0� c �R � t j d� � ddlm} t | _ dS )zdDEPRECATED, use show_in_pager hook Install this version of page as IPython.core.page.page. zninstall_payload_page is deprecated. Use `ip.set_hook('show_in_pager, page.as_hook(payloadpage.page))` r )r N)�warnings�warn�IPython.corer )�corepages r �install_payload_pager * s<