转载

IPython 4.0 发布,Python 命令行式交互

IPython 4.0 发布,这是 IPython 分离成 Ipython 和 Jupyter 的第一个重要版本。

在 4 月份的时候,IPython 分离成了两个项目 IPython 和 Jupyter,Jupyter 和 IPython 的代码是一样的,同样的开发人员,但是属于不同的家,使用不同的名字。

IPython 将会继续是 Python shell 和 Jupyter 的内核,但是 notebook 和其他语言无关的部分都会转移到 Jupyter。IPython 3.0 是最后的 IPython 单个完整版本!

IPython 越来越成熟,特别是:

  • the notebook format

  • the REPL protocol

已经趋于稳定,而现在要继续开发一些不稳定的试验性交互部件,所以发布周期无法很好的统一,分离成了两个项目,稳定的,与语言无关的部分迁移到了 Jupyter。详细的迁移说明请看 这里 。

快速升级 Jupyter:

pip install --upgrade jupyter

IPython 不再包括 notebook, qtconsole 等等。IPython 包括 IPython.parallel 和 widgets 。

废弃了以下的包:

  • IPython.kernel (now jupyter_client and ipykernel)

  • IPython.consoleapp (now jupyter_client.consoleapp)

  • IPython.nbformat (now nbformat)

  • IPython.nbconvert (now nbconvert)

  • IPython.html (now notebook)

  • IPython.parallel (now ipyparallel)

  • IPython.utils.traitlets (now traitlets)

  • IPython.config (now traitlets.config)

  • IPython.qt (now qtconsole)

  • IPython.terminal.console (now jupyter_console)

和一些其他实用工具。

IPython 4.0 值得关注的改进:

  • 发现 IPython 路径的 Public APIs 迁移:从 mod:`IPython.utils.path` 到 :mod:`IPython.paths`

  • Code raising DeprecationWarning entered by the user in an interactive session will now display the warning by default. See :ghpull:`8480` an :ghissue:`8478` .

  • The --deep-reload flag and the corresponding options to inject dreload or reload into the interactive namespace have been deprecated, and will be removed in future versions. You should now explicitly import reload from IPython.lib.deepreload to use it.

更多改进内容请看 发行说明 和 发行日志 。

下载: https://github.com/ipython/ipython/archive/4.0.0.zip 。

IPython 是 Python 的原生交互式 shell 的增强版,可以完成许多不同寻常的任务,比如帮助实现并行化计算;主要使用它提供的交互性帮助,比如代码着色、改进了的命令行回调、制表符完成、宏功能以及改进了的交互式帮助。

IPython 4.0 发布,Python 命令行式交互

正文到此结束
Loading...