Format: application/x-python-code
1 o
2
3 ��h� � @ s. d Z ddlZddlmZ ddd�Zdd� ZdS ) z A payload based version of page.� N)�get_ipythonc C sF t d|�}t� }t| t�r| }nd| i}td||d�}|j�|� dS )aj Print a string, piping through a pager.
4
5 This version ignores the screen_lines and pager_cmd arguments and uses
6 IPython's payload system instead.
7
8 Parameters
9 ----------
10 strng : str or mime-dict
11 Text to page, or a mime-type keyed dict of already formatted data.
12 start : int
13 Starting line at which to place the display.
14 r z
15 text/plain�page)�source�data�startN)�maxr �
16 isinstance�dictZpayload_managerZ
17 write_payload)Zstrngr Zscreen_linesZ pager_cmd�shellr �payload� r �Nc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/core/payloadpage.pyr s
18
19 �r c C s t �d� ddlm} t| _dS )zdDEPRECATED, use show_in_pager hook
20
21 Install this version of page as IPython.core.page.page.
22 zninstall_payload_page is deprecated.
23 Use `ip.set_hook('show_in_pager, page.as_hook(payloadpage.page))`
24 r )r N)�warnings�warnZIPython.corer )Zcorepager r r
25 �install_payload_page* s
26
27 r )r r N)�__doc__r ZIPython.core.getipythonr r r r r r r
28 �<module> s
29
30