IPython CLI用于在浏览器中查看文档
项目描述
newtabmagic是一个IPython CLI,用于在浏览器中查看pydoc文档。
安装
作为Python包
$ pip install newtabmagic
作为IPython扩展
In [1]: %install_ext https://raw.github.com/etgalloway/newtabmagic/master/newtabmagic.py
使用
加载扩展
In [1]: %load_ext newtabmagic
启动pydoc服务器
In [2]: %newtab --server start
Starting job # 0 in a separate thread.
Server running at http://127.0.0.1:63146/
在浏览器中查看文档
In [3]: %newtab IPython.core.debugger.Tracer
In [4]: import IPython
In [5]: tracer = IPython.core.debugger
In [6]: %newtab tracer