Skip to content
Snippets Groups Projects
Commit 3e5726b3 authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

Upload New File

parent 8873045d
Branches
Tags
No related merge requests found
%% Cell type:markdown id: tags:
# Loading Modules into the Kernel (Notebook) environment
%% Cell type:markdown id: tags:
### Check what modules are currently loaded in this Notebook session
%% Cell type:code id: tags:
``` python
!module list --no-pager
```
%% Output
Currently Loaded Modulefiles:
1) miniconda3/4.8.2-gcc-8.3.1-3m7b6t2
%% Cell type:markdown id: tags:
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...**
%% Cell type:code id: tags:
``` python
%%writefile ~/load_modules_into_jupyter.conf
eccodes/2.18.0-gcc-8.3.1-s7clum3
```
%% Output
Writing /jetfs/home/mblaschek/load_modules_into_jupyter.conf
%% Cell type:code id: tags:
``` python
!cat ~/load_modules_into_jupyter.conf
```
%% Output
eccodes/2.18.0-gcc-8.3.1-s7clum3
%% Cell type:markdown id: tags:
### Restart the kernel and you should see that the module is loaded
%% Cell type:code id: tags:
``` python
!module list --no-pager
```
%% Output
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
%% Cell type:markdown id: tags:
### Now all the dependencies are loaded as well
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment