JupyterHub with JupyterLab 3.X getting 404

Hi folks,

Not sure if this belongs on the jupyterhub github issues, but I’ll start here because according to PRs and issues it should be fixed already. I must be missing something because I have not had success.

With:
c.Spawner.cmd = [‘jupyterhub-singleuser’]
JupyterLab launches, but as expected, without the hub menu items, so can’t shutdown the notebook server.

With:
c.Spawner.cmd = [‘jupyter-labhub’]
I get 404.

By my understanding this should be fixed with:

So, I was wondering if anyone has had success?

Many thanks
Tim
(JupyterHub 1.3, but I also tried with 1.1 and had same results)

To help narrow down the problem could you check whether the menu items appear in the Notebook app (/tree instead of /lab)?

Hi,
/lab does not actually appear in the URL, but appending /tree or anything else always gives 404.
Another user sees the same behaviour in Jupyter lab 3.0.1 and jupyterhub · Issue #9558 · jupyterlab/jupyterlab · GitHub
I am using subdomains by the way, not sure if that is relevant.

It looks like there was an additional fix needed: Refactor labhub + CI by afshin · Pull Request #9604 · jupyterlab/jupyterlab · GitHub

This fix has been merged into master, but not yet released.

With this fix, running jupyter-labhub should just work.

2 Likes

Awesome, confirmed as working with master. One thing still to clarify - the url when using lab is /lab/tree/Notebook.ipynb. Shouldn’t it be just /lab (and just /tree for classic notebook)?

1 Like