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.
Execute the cell with
ctrl-enter
orshift-enter
When prompted to “Select Kernel”, leave the default Python 3 kernel and click “Select”.
Wait until
Installed kernelspec iom-env in [...]
is displayedReload the page
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.
Execute the cell with
ctrl-enter
orshift-enter
When prompted to “Select Kernel”, leave the default Python 3 kernel and click “Select”.
Wait until the copy process has finished
In the file browser on the left side, click the refresh icon
A directory
iom_notebooks
should appear
!bash /data/horse/ws/mats024c-iom-ai/copy_data.sh