Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JupyterHub doesn't see JupyterLab #58662

Closed
jluttine opened this issue Apr 1, 2019 · 2 comments
Closed

JupyterHub doesn't see JupyterLab #58662

jluttine opened this issue Apr 1, 2019 · 2 comments

Comments

@jluttine
Copy link
Member

jluttine commented Apr 1, 2019

Issue description

When JupyterLab has been installed with JupyterHub, the hub should have an URL of the form http://localhost:8000/user/jluttine/lab to launch JupyterLab (see https://jupyterlab.readthedocs.io/en/stable/user/jupyterhub.html). However, this doesn't seem to work for some reason although I added jupyterlab to propagatedBuildInputs of jupyterhub.

Steps to reproduce

Add jupyterlab to propagatedBuildInputs of jupyterhub. (And also notebook if you don't have it there already, see #58542.)

Launch nix shell with nix-shell -p python3Packages.jupyterhub.

Launch Jupyter Hub with jupyterhub.

Open localhost:8000in your browser and log in (with your actual Linux username and password).

Try to open URL: http://localhost:8000/user/jluttine/lab (replace jluttine with your username).

Instead of opening JupyterLab, you'll see 404 error page.

Technical details

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.103, NixOS, 19.09.git.1233c8d (Loris)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.2`
 - nixpkgs: `/etc/nixpkgs`
@jluttine
Copy link
Member Author

jluttine commented Apr 1, 2019

Turns out that the docs were a bit incorrect. The Hub needs to be launched as:

jupyterhub --Spawner.cmd='jupyter-labhub'

Then it works.

@jluttine jluttine closed this as completed Apr 1, 2019
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/anyone-has-a-working-jupyterhub-jupyter-lab-setup/7659/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants