'Pretty print the object and display it through a pager.
%page [options] OBJECT
If no object is given, use _ (last output).
Options:
-r: page str(object), don\'t pretty-print it.'

@line_magic
def page(self, parameter_s=''):

    (opts, args) = self.parse_options(parameter_s, 'r')
    raw = ('r' in opts)
    oname = ((args and args) or '_')
    info = self.shell._ofind(oname)
    if info['found']:
        txt = ((raw and str) or pformat)(info['obj'])
        page.page(txt)
    else:
        print ('Object    `%s`    not    found' % oname)
