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 的增強版,可以完成許多不同尋常的任務,比如幫助實現并行化計算;主要使用它提供的交互性幫助,比如代碼著色、改進了的命令行回調、制表符完成、宏功能以及改進了的交互式幫助。