【问题标题】:What is the difference between jupyter and jupyter-notebookjupyter和jupyter-notebook有什么区别
【发布时间】:2019-06-06 22:16:41
【问题描述】:

我注意到两个命令 jupyterjupyter-notebook 通过 conda 安装在我的桌面中的 Ubuntu 18.04.1 LTS 中,两者都在python 3.6.7, 我通过以下方式检查了他们的版本:

$ jupyter --version
# 4.4.0
$ jupyter-notebook --version
# 5.7.4

通过命令的帮助信息,我得到了:

$ jupyter-notebook --help
  The Jupyter HTML Notebook.
  This launches a Tornado based HTML Notebook Server that serves up an
  HTML5/Javascript Notebook client.

$ jupyter --help
  usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir]
        [--paths] [--json]
        [subcommand]
   Jupyter: Interactive Computing

谷歌了一段时间,找不到任何关于两者区别的讨论,虽然 帮助信息告诉我一个是 server,另一个用于交互式计算,这对我来说还不够。去了Jupyter website,但找不到任何关于版本和两者之间差异的描述。
如果有人可以为我详细说明:
1)它们有什么不同;
2) 并说明版本号不同的原因;
虽然它们似乎在做同样的工作,但它们都会从浏览器中弹出 Notebook 界面。
非常感谢!

【问题讨论】:

  • jupyter-notebookjupyter notebook 做同样的事情 - 启动笔记本服务器。 jupyter 让您可以执行其他操作,例如 jupyter qtconsole 及其帮助中列出的其他子命令。

标签: python server jupyter-notebook jupyter


【解决方案1】:
jupyter <subcommand> [options]

jupyter 命令用于执行不同的与 jupyter 相关的任务,包括启动 jupyter 应用程序。 jupyter 命令主要是子命令的命名空间。检查其源代码here,其中文档字符串指出:

jupyter 命令。

除了分派到子命令或输出路径之外,这没有任何作用 信息。


jupyter-notebookjupyter notebook 用于启动 jupyter notebook 服务器并执行仅与 notebook 相关的任务。


这里版本号不同是因为

$ jupyter --version  # gives you the version of `jupyter` command
# 4.4.0
$ jupyter-notebook --version  # gives you the version of `jupyter notebook`
# 5.7.4

【讨论】:

  • 这解决了我的大部分问题,我需要阅读更多内容。非常感谢!
猜你喜欢
  • 2021-08-20
  • 2018-12-01
  • 1970-01-01
  • 2020-09-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多