用于在浏览器中查看文档的ipython cli
newtabmagic的Python项目详细描述
newtabmagic是一个用于在中查看pydoc文档的IPythoncli 浏览器。
安装
作为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