【问题标题】:what is the relation and difference between ipython and jupyter consoleipython和jupyter控制台有什么关系和区别
【发布时间】:2018-08-06 04:05:12
【问题描述】:

ipython notebook项目改名为jupyter后,我一直认为ipython notebookjupyter notebook是一样的,而ipythonshell只是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 有依赖关系吗?

【问题讨论】:

    标签: python ipython jupyter


    【解决方案1】:

    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
    

    【讨论】:

    • 非常感谢您的回复。 visual overview of projects 清楚地显示了依赖关系。从图中和你的回复来看,它说 ipykernel 依赖于 ipython;而不是相反。这很有趣。我认为 ipython 将是一个与核心 - ipykernel 通信的 shell,就像 jupyter 一样。但事实并非如此。
    • 感谢您从链接中直接放置文本,这些页面现在已经消失了,但您的答案仍然存在 :)
    • 链接现在好像是here
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-06
    • 2012-09-04
    • 1970-01-01
    • 2011-12-15
    • 2021-08-20
    • 1970-01-01
    相关资源
    最近更新 更多