MCPcopy Create free account
hub / github.com/ipython/ipython / display_page

Function display_page

IPython/core/page.py:35–43  ·  view source on GitHub ↗

Just display, no paging. screen_lines is ignored.

(strng, start=0, screen_lines=25)

Source from the content-addressed store, hash-verified

33
34
35def display_page(strng, start=0, screen_lines=25):
36 """Just display, no paging. screen_lines is ignored."""
37 if isinstance(strng, dict):
38 data = strng
39 else:
40 if start:
41 strng = u'\n'.join(strng.splitlines()[start:])
42 data = { 'text/plain': strng }
43 display(data, raw=True)
44
45
46def as_hook(page_func):

Callers

nothing calls this directly

Calls 1

displayFunction · 0.90

Tested by

no test coverage detected