Hey everyone,
Note that this question is also on Stack Overflow, but reposted here as no one was able to help after a few days (I can’t link to the question though as only two links are allowed).
I’ve recently updated to chart version 2.0.0 of JupyterHub (app version 3.0.0) from JupyterHub’s Helm chart repository.
In the previous version that I was running (0.9.1), I was able to change the default URL so that JupyterLab was loaded by default. However, in the new version that is not working. Note however that I can manually change the URL and JupyterLab loads as expected.
singleuser:
defaultUrl: /lab
Looking at the Zero to JupyterHub documentation, it states that JupyterLab is the default for JupyterHub 2.0 and Helm chart 2.0, so one would expect JupyterLab to be the default. However, to be sure I tried the both examples in the documentation.
With this example, an error occurs when spawning my server.
singleuser:
defaultUrl: "/lab"
extraEnv:
JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp"
Traceback (most recent call last):
File “/opt/conda/bin/jupyterhub-singleuser”, line 7, in
from jupyterhub.singleuser import main
File “/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser/init.py”, line 5, in
from .app import main
File “/opt/conda/lib/python3.8/site-packages/jupyterhub/singleuser/app.py”, line 16, in
App = import_item(JUPYTERHUB_SINGLEUSER_APP)
File “/opt/conda/lib/python3.8/site-packages/traitlets/utils/importstring.py”, line 30, in import_item
module = import(package, fromlist=[obj])
ModuleNotFoundError: No module named ‘jupyter_server’
With this example, nothing changes.
singleuser:
defaultUrl: "/lab"
extraEnv:
JUPYTERHUB_SINGLEUSER_APP: "notebook.notebookapp.NotebookApp"
How can I launch into JupyterLab by default?