[IPython-dev] %page help(x)

Mark Voorhies mark.voorhies at ucsf.edu
Thu Oct 13 21:59:36 EDT 2011

On Thursday, October 13, 2011 05:24:23 pm Fernando Perez wrote:
> Hey Mark,
> On Thu, Oct 13, 2011 at 5:05 PM, Mark Voorhies <mark.voorhies at ucsf.edu> wrote:
> > I'd like to send the results of help(myclass) (i.e., the class and method docstrings)
> > to the qtconsole pager.  "myclass?', "myclass??", and "%pdoc myclass" are all not
> > what I'm looking for.  Is this a thing?  If not, which module should I be hacking on?
> >
> help() is a part of the python stdlib, you can see the code by typing
> help?? at the ipython prompt.  It will show you that it's a little
> wrapper around pydoc.help.  So you could simply write your own
> function/magic that uses this helper but instead of letting it display
> its results, fetches them and calls the ipython pager.
> Let us know if you need further details.
> Cheers,
> f



P.S.: If I get this working, is it worth a pull request, or is this the sort of thing
that should live in personal magic?

More information about the IPython-dev mailing list