Reputation: 171
I noticed two commands jupyter and jupyter-notebook are installed in my desktop within Ubuntu 18.04.1 LTS by conda, both are under python 3.6.7, and I checked their versions by:
$ jupyter --version
# 4.4.0
$ jupyter-notebook --version
# 5.7.4
With the help info of the commands, I got:
$ 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
Googled for a while, could not find out any discussion on the difference between the two, although the help infos have told me one is server, and the other is for interactive computing, which is not enough to me. Went to Jupyter website but could not find any description about the version and difference between the two.
Appreciate if anybody could elaborate for me:
1) what do they differ from each other;
2) and clarify why the version numbers are different;
while they seem doing the same job as both pop up the Notebook interface from the browser.
Thanks a lot!
Upvotes: 5
Views: 2022
Reputation: 12837
jupyter <subcommand> [options]
jupyter
command is used to perform different jupyter-related tasks including starting a jupyter application. The jupyter command is primarily a namespace for subcommands. Check its source code here, where the docstring states:
The root
jupyter
command.This does nothing other than dispatch to subcommands or output path info.
jupyter-notebook
or jupyter notebook
is used to start jupyter notebook server and perform tasks related to notebook only.
Here, the version numbers are different because
$ 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
Upvotes: 7