跳转到主要内容

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

项目详情


下载文件

下载适合您平台的应用程序文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

newtabmagic-0.1.0.zip (8.0 kB 查看哈希值)

上传时间: 源代码

构建分发

newtabmagic-0.1.0-py2.py3-none-any.whl (6.7 kB 查看哈希值)

上传时间: Python 2 Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面