Using DKRZ's Jupyterhub

Jupyterhub is a multi-user server to serve Jupyter Notebooks to a large number of users. It is integrated with Mistral's batch scheduling system to allocate computing resources and launch Jupyter Notebooks directly on the HPC system. It therefore also supports the execution of parallel computation.

The preset spawner loads the classical notebook mode. To switch it to the jupyterlab mode we simply need to go the URL and add /lab before /tree:

classical notebook: https://jupyterhub.dkrz.de/user/k204229/preset/tree/home/dkrz/k204229?
jupyterlab:         https://jupyterhub.dkrz.de/user/k204229/preset/lab/tree/home/dkrz/k204229?




Once the session is open, we can navigate through our folder structure via web or also via virtual terminal. It allows us to choose among multiple python preset kernels, one R kernel and one Julia kernel as well, but we also have the choice to load our own environment. Naturally we can open and run our jupyter notebook files here.

We can use Jupyterhub as a simple text editor as well, but we could also connect some local IDE (e.g. VS Code) remotely with some kernel in DKRZ.

Important Notes

There are a few points you should be aware of when working with Jupyter Notebooks on the jupyterhub server:

  1. Sessions are persistent. If you close the browser tab without stopping the server before, you can revisit the jupyterhub site and carry on working.

  2. Closing browser’s tab or log-in out will not stop your session, your session will continue consuming resources (see next point).

  3. It is preferable to close the session when you finish. This depends on how you started the session (preset, advanced):

    • JupyterLab: File → Hub Control Panel → (preset/advanced) and then stop.

    • classical Jupyter: Control Panel → (preset/advanced) and then stop