Which version of python runs the Notebook Server?

35 views
Skip to first unread message

Adam Rule

unread,
Jul 5, 2017, 4:40:34 PM7/5/17
to Project Jupyter
I have been trying to help some colleagues install an extension that includes both a server and nb component and have had some trouble when they have more than one version of python, or of the notebook, on their machine.

Is there a way to tell from a notebook which version of python is running the notebook server (not the kernel)? Is there a default? Similarly is there a way to tell from the notebook, which version of the notebook is running? I am imagining something like `which notebook` or `which python` but the default one returned by these in Terminal is not always the same as ends up running the notebook (or so it seems).

Matthias Bussonnier

unread,
Jul 6, 2017, 4:31:35 AM7/6/17
to jup...@googlegroups.com
Hello Adam,

IN a running notebook, you can do `help > about` it should display
information about both the running server and current kernel.
The default should be current python executable (IIRC), if you want to
be sure you can do :
python -m notebook
And then you can be sure it starts with the python you referenced.
which jupyter-notebook
can also tell you which script get started.

Does that helps ?
--
M
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jupyter+u...@googlegroups.com.
> To post to this group, send email to jup...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/f9b93fd6-7bb2-49bb-98bf-881968a6f711%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Adam Rule

unread,
Jul 6, 2017, 11:58:08 AM7/6/17
to Project Jupyter
Very helpful. Thank you!
Reply all
Reply to author
Forward
0 new messages