![](images/Getting_Started_with_JupyterHub_at_DKRZ-00.png) # Getting Started with JupyterHub at DKRZ ## General Infos Data analysis work will be done on the supercomputer Levante at DKRZ. You find some information on high-performance computing platform here: * https://docs.dkrz.de/doc/getting_started/index.html * https://docs.dkrz.de/doc/levante/index.html The main part of the proposed data analysis will be done with Jupyter Notebooks using Python as programming language. For python, you will find a lot of information in the internet. As starting point, these tutorials are interesting: * https://github.com/NCAR/ncar-python-tutorial/blob/master/notebooks/welcome.ipynb * https://unidata.github.io/python-training/python/intro-to-python/ For an intro to Jupyter Notebooks, see here: * https://www.dataquest.io/blog/jupyter-notebook-tutorial/ * https://jupyter.readthedocs.io/en/latest/index.html ## Login * **Do you have a DKRZ account?** * Your work is part of the DKRZ traĆ­ning project `bb1224`. The first steps is to **ask your supervisor for account details**, i.e. username and password pair. * Student accounts are provided by DKRZ on a temporary basis. * **check JupyterHub Tutorial** * This tutorial covers all aspects about jupyterhub at DKRZ: https://docs.dkrz.de/doc/software%26services/jupyterhub/index.html * **Load a Jupyter Spawner** * type https://jupyterhub.dkrz.de * You will land on this page where you need to input your mentioned account details ![](images/Getting_Started_with_JupyterHub_at_DKRZ-01.png) * At the next page, you need to select the **"Start" button in the Levante row & the Preset column** below the Spawner Options title. ![](images/Getting_Started_with_JupyterHub_at_DKRZ-02.png) * input the following options | Category | Input | | -------- | -------- | | profile | 5 GB memory, interactive, 08:00h | | account | bb1224 | which after loading looks like this (the JupyterLab interface): ![](images/Getting_Started_with_JupyterHub_at_DKRZ-03.png) * You will land in your Levante `${HOME}` directory. Please, check the documentation linked above to know how much space is free for you (keyword: "quotas"). * **Create Folders**: In your `${HOME}` directory, you can create folders. Please do so, e.g. a "data" and a "notebooks" folder: ![](images/Getting_Started_with_JupyterHub_at_DKRZ-04.png) Folders are created as "Untitled Folder". Right-Check on them and rename them! **Create your first Notebook**: * Click on "notebooks" folder * Click on the "Python 3 (based on module python/2023.01)" button below the "Notebook" headline (right side, first row in JupyterLab). ![](images/Getting_Started_with_JupyterHub_at_DKRZ-05.png) * A new tab opens in the inner JupyterLab window. It looks like: ![](images/Getting_Started_with_JupyterHub_at_DKRZ-06.png) * Rename the Notebook. Either right-click on the tab or in the file list located left and change "Untitled.ipynb" to e.g. "00-my_first_notebook" (don't use space or special characters - it's a linux system!) **Open a Terminal** * Click on the blue button with the white plus sign (left upper corner in JupyterLab). This brings you back to the Launcher view which is opened as additional tab. * Click on "Terminal" (first button under the "Other" headline, see ![](images/Getting_Started_with_JupyterHub_at_DKRZ-07.png) * A terminal will open in a new tab. It looks like ![](images/Getting_Started_with_JupyterHub_at_DKRZ-08.png) * *Note that you can do all exercises also in this (or such a) terminal.* **Now, you are ready to get the course material!**