gpt4 book ai didi

python - ipython和jupyter console有什么关系和区别

转载 作者:太空狗 更新时间:2023-10-29 21:54:05 28 4
gpt4 key购买 nike

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 有任何依赖关系吗?

最佳答案

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

具体来说,根据 Migrating from IPython Notebook — Jupyter Documentation :

The Big Split moved IPython’s various language-agnostic components under the Jupyter umbrella. Going forward, Jupyter will contain the language-agnostic projects that serve many languages. IPython will continue to focus on Python and its use with Jupyter.

Jupyter's architecture包括前端(网络或控制台)和后端(各种语言的内核)。 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

关于python - ipython和jupyter console有什么关系和区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51700425/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com