DuckQueen
DuckQueen

Reputation: 802

How to configure JupyterHub to show same notebook types as Jupyter?

On Ubuntu 14 I installed Jupyter via pip3 and apt-get. It works. Yet I have a problem: JupyterHub shows one menu for a user:

enter image description here

while Jupyter notebook shows another:

enter image description here

Same virtual environments and default configuration.

I use the following comands to start them:

sudo jupyter notebook --port=80 --ip=0.0.0.0  --no-browser
sudo jupyterhub --port 80

I wonder what shall be changed in JupyterHub to show exactly the same picture as I see in Jupyter?

Upvotes: 1

Views: 461

Answers (2)

minrk
minrk

Reputation: 38588

JupyterHub doesn't change how kernelspecs are found or listed, so the most likely cause is that some of your kernels are installed for just one user, and not available to other users on the system. You can see where kernelspecs are with:

$ jupyter kernelspec list
Available kernels
  python3    /home/you/.local/share/jupyter/kernels/python3
  python2    /usr/local/share/jupyter/kernels/python2

Any kernelspecs that are installed in a per-user location (e.g. in your home directory) will not be available to other users. Any kernelspecs that you want to be available to all users on the Hub need to be in a system-wide location (/usr/local/share/jupyter/kernels/).

Upvotes: 1

seanmus
seanmus

Reputation: 518

Are you sure you have Jupyter configured for python2 kernels? See this answer for more details Unable to run ipython-notebook 2.7 with jupyterhub.

Upvotes: 0

Related Questions