
    Mh                     &    d Z ddlZddlmZ ddZdS )z A payload based version of page.    N)get_ipythonc                     t          d|          }t                      }t          | t                    r| }nd| i}t          d||          }|j                            |           dS )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          X/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/IPython/core/payloadpage.pyr   r      sy      5MMEMME% %e$  G
 
''00000    )r   r   N)__doc__warningsIPython.core.getipythonr   r    r   r   <module>r      sF    & &
  / / / / / /1 1 1 1 1 1r   