[IPython-dev] newtabmagic

Thomas Kluyver takowl at gmail.com
Wed Jul 23 15:12:43 EDT 2014


Thanks Eric. Please do add this to the IPython extensions index as well:

https://github.com/ipython/ipython/wiki/Extensions-Index

Best wishes,
Thomas


On 23 July 2014 08:50, Eric Galloway <ericgalloway at gmail.com> wrote:

> Hi folks,
>
> newtabmagic is a magic for opening help pages in new browser tabs.
> In IPython, the operators ? and ?? display help in text form.
> newtabmagic runs the pydoc server as a background process,
> providing access to help pages in HTML.
>
> There are two ways of opening new browser tabs. By
> dotted reference
>
>     In [1]: %newtab IPython.core.debugger.Tracer
>
> which opens the url
> http://127.0.0.1:8888/IPython.core.debugger.Tracer.html
> (for a pydoc server port of 8888).
>
> Or by providing the name of an object. Here
> we need to do an import first:
>
>     In [1]: import IPython
>     In [2]: tracer = IPython.core.debugger.Tracer
>     In [3]: %newtab tracer
>
> See https://github.com/etgalloway/newtabmagic for more.
>
> -Eric
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140723/19d9c07c/attachment.html>


More information about the IPython-dev mailing list