ipython和jupyter控制台之间的关系和区别是什么

时间:2018-08-06 04:05:13

标签: python ipython jupyter

将ipython Notebook项目重命名为jupyter之后,我始终认为ipython notebookjupyter notebook是相同的,而ipython shell只是jupyter console的别名。今天,我意识到ipython尚未定义connect_info魔术,因此无法从不同的后端连接。

我在conda中安装了以下组件:

ipython                   6.1.0                    py36_0    defaults
jupyter                   1.0.0                    py36_4    defaults
jupyter_client            5.2.3                    py36_0    defaults
jupyter_console           5.2.0            py36he59e554_1    defaults
jupyter_contrib_core      0.3.3                    py36_1    conda-forge
jupyter_contrib_nbextensions 0.5.0                    py36_0    conda-forge
jupyter_core              4.4.0            py36h7c827e3_0    defaults

我有以下问题:

  1. 此版本的ipython和此版本的jupyter console之间是什么关系?
  2. ipython notebook(在ipython 6.1.0中弃用)是否与jupyter库共享某些组件?还是ipython notebook仍然是独立的?
  3. ipythonjupyter有依赖性吗?

1 个答案:

答案 0 :(得分:2)

Architecture Guides — Jupyter Documentation具有有关IPython和Jupyter如何连接和相关的权威信息。

具体来说,按照Migrating from IPython Notebook — Jupyter Documentation

  

The Big Split将IPython的各种与语言无关的组件移到了Jupyter保护伞下。展望未来,Jupyter将包含为多种语言服务的与语言无关的项目。 IPython将继续专注于Python及其在Jupyter中的使用。

Jupyter's architecture包括前端(Web或控制台)和后端(各种语言的内核)。 IPython控制台仅适用于Python和终端。如果“ IPython Notebook”还是一回事(如果我pip install ipython从IPython 5.5.0开始就无法使用),可能是为了向后兼容而移动的组件的雏形。

IPython是Jupyter的依赖项:

> pip show jupyter
<...>
Requires: ipywidgets, qtconsole, nbconvert, notebook, jupyter-console, ipykernel

> pip show ipython
<...>
Required-by: jupyter-console, ipywidgets, ipykernel
相关问题