Prepare your Jupyter Lab environment#

This notebook HPC-setup.ipynb is used to prepare your HPC Jupyter Lab environment on the first day of the training.

Execute he following cells to:

  • Install a custom Python kernel with all packages used in the training

  • Copy all notebooks and data used for training to your home directory

1. Install the Python Kernel “iom-env”#

The following command installs a Python kernel “iom-env”.

This only needs to be done once, after which the Python kernel will be available for your user account for rest of the training school.

  1. Execute the cell with ctrl-enter or shift-enter

  2. When prompted to “Select Kernel”, leave the default Python 3 kernel and click “Select”.

  3. Wait until Installed kernelspec iom-env in [...] is displayed

  4. Reload the page

  5. You can now select the Python kernel iom-env from the available kernels

!bash /data/horse/ws/mats024c-iom-ai/install_python_kernel.sh

2. Copy notebooks and data#

The following command copies the Jupyter notebooks and data used in the sessions to your home directory.

It will create a directory ~/iom_notebooks with subdirectories for the sessions.

  1. Execute the cell with ctrl-enter or shift-enter

  2. When prompted to “Select Kernel”, leave the default Python 3 kernel and click “Select”.

  3. Wait until the copy process has finished

  4. In the file browser on the left side, click the refresh icon

  5. A directory iom_notebooks should appear

!bash /data/horse/ws/mats024c-iom-ai/copy_data.sh