首页 > 解决方案 > ipython和jupyter控制台有什么关系和区别

问题描述

在 ipython notebook 项目改名为 jupyter 后,我一直认为和shellipython notebook一样,只是. 今天我意识到没有定义魔法,因此无法从不同的后端连接。jupyter notebookipythonjupyter consoleipythonconnect_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任何依赖关系吗?

标签: pythonipythonjupyter

解决方案


架构指南 — Jupyter 文档包含有关 IPython 和 Jupyter 如何连接和关联的权威信息。

具体来说,根据从 IPython Notebook 迁移 — Jupyter 文档

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

Jupyter 的架构包括前端(Web 或控制台)和后端(各种语言的内核)。IPython 控制台仅与 Python 和终端有关。“IPython Notebook”,如果它仍然是一个东西(如果我从 IPython 5.5.0 开始,它不能开箱即用pip install ipython),可能是为了向后兼容而移动组件的雏形。

IPython 是 Jupyter 的依赖项:

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

> pip show ipython
<...>
Required-by: jupyter-console, ipywidgets, ipykernel

推荐阅读