Format: application/x-python-code
⬇ Download File (1.4 KB)
   1  o
   2  
   3  ��h��@s.dZddlZddlmZddd�Zdd�ZdS)	z A payload based version of page.�N)�get_ipythoncCsFtd|�}t�}t|t�r|}nd|i}td||d�}|j�|�dS)ajPrint 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      rz
  15  text/plain�page)�source�data�startN)�maxr�
  16  isinstance�dictZpayload_managerZ
  17  write_payload)ZstrngrZscreen_linesZ	pager_cmd�shellr�payload�r�Nc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/core/payloadpage.pyrs
  18  
  19  �rcCs 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)rN)�warnings�warnZIPython.corer)Zcorepagerrr
  25  �install_payload_page*s
  26  
  27  r)rrN)�__doc__rZIPython.core.getipythonrrrrrrr
  28  �<module>s
  29  
  30