Loading Modules into the Kernel (Notebook) environment¶
Check what modules are currently loaded in this Notebook session¶
In [1]:
Copied!
!module list --no-pager
!module list --no-pager
Currently Loaded Modulefiles: 1) miniconda3/4.8.2-gcc-8.3.1-3m7b6t2
Put this file load_modules_into_jupyter.conf
into your Home directory and your Notebook environment will have these modules loaded.
It is not possible to load these modules via magic (python magic ;).
It needs the empty line at the end...
In [2]:
Copied!
%%writefile ~/load_modules_into_jupyter.conf
eccodes/2.18.0-gcc-8.3.1-s7clum3
%%writefile ~/load_modules_into_jupyter.conf
eccodes/2.18.0-gcc-8.3.1-s7clum3
Writing /jetfs/home/mblaschek/load_modules_into_jupyter.conf
In [3]:
Copied!
!cat ~/load_modules_into_jupyter.conf
!cat ~/load_modules_into_jupyter.conf
eccodes/2.18.0-gcc-8.3.1-s7clum3
Restart the kernel and you should see that the module is loaded¶
In [1]:
Copied!
!module list --no-pager
!module list --no-pager
Currently Loaded Modulefiles: 1) miniconda3/4.8.2-gcc-8.3.1-3m7b6t2 2) zlib/1.2.11-gcc-8.3.1-bbbpnzp 3) openmpi/4.0.5-gcc-8.3.1-773ztsv 4) hdf5/1.12.0-gcc-8.3.1-awl4atl 5) parallel-netcdf/1.12.1-gcc-8.3.1-xxrhtxn 6) netcdf-c/4.7.4-gcc-8.3.1-fh4nn6k 7) eccodes/2.18.0-gcc-8.3.1-s7clum3
Now all the dependencies are loaded as well¶
Last update:
January 26, 2023
Created: January 26, 2023
Created: January 26, 2023