<div dir="ltr">I'm not sure quite how you got into the weeds that are currently ensnaring you, so I will content myself with observing that when I create a new virtual environment and execute<div><br></div><div>    pip install jupyter</div><div><br></div><div>everything then appears to be ready to make</div><div><br></div><div>    jupyter notebook</div><div><br></div><div>work perfectly. If you aren't currently using virtual environments then I would recommend you start immediately.</div><div><br></div><div>regards</div><div> Steve</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Steve Holden<br></div></div></div>
<br><div class="gmail_quote">On Fri, Feb 12, 2016 at 9:14 AM, Akim Demaille <span dir="ltr"><<a href="mailto:akim@lrde.epita.fr" target="_blank">akim@lrde.epita.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The most recent version of IPython complains when I run `ipython notebook`:<br>
<br>
> $ ipython notebook<br>
> [TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.<br>
> [TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook`... continue in 5 sec. Press Ctrl-C to quit now.<br>
<br>
So I obey, but it fails:<br>
<br>
> $ jupyter-3.4 notebook<br>
> jupyter: 'notebook' is not a Jupiter command<br>
<br>
<br>
What?  What are the existing commands?<br>
<br>
> $ jupyter-3.4 --help<br>
> usage: jupyter-3.4 [-h] [--version] [--config-dir] [--data-dir]<br>
>                    [--runtime-dir] [--paths] [--json]<br>
>                    [subcommand]<br>
><br>
> Jupyter: Interactive Computing<br>
><br>
> positional arguments:<br>
>   subcommand     the subcommand to launch<br>
><br>
> optional arguments:<br>
>   -h, --help     show this help message and exit<br>
>   --version      show the jupyter command's version and exit<br>
>   --config-dir   show Jupyter config dir<br>
>   --data-dir     show Jupyter data dir<br>
>   --runtime-dir  show Jupyter runtime dir<br>
>   --paths        show all Jupyter paths. Add --json for machine-readable<br>
>                  format.<br>
>   --json         output paths as machine-readable json<br>
><br>
> Available subcommands: 3.4 kernelspec-3.4 migrate-3.4 nbconvert-3.4<br>
> nbextension-3.4 notebook-3.4 trust-3.4<br>
<br>
Huh, I need that -3.4 extension :(<br>
<br>
> $ jupyter-3.4 notebook-3.4<br>
> [I 10:09:00.941 NotebookApp] The port 8888 is already in use, trying another random port.<br>
> [I 10:09:00.942 NotebookApp] The port 8889 is already in use, trying another random port.<br>
<br>
<br>
But that `ipython notebook` is inside a shell script that I<br>
provide my users with.  So I need something portable.  Hence<br>
the question is: what is the advertised way to know how the<br>
`notebook` command is to be invoked?  Yeah, I can grep and<br>
sed etc. the help message, but that’s really messy.  Besides,<br>
how do I know what conventions are used on other platforms/distros?<br>
<br>
That `notebook-3.4` instead of `notebook` is really an additional<br>
complexity I would have liked not to have.<br>
<br>
FWIW, IPython/Jupyter were installed via MacPorts.<br>
<br>
Cheers!<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/ipython-dev" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div><br></div>