Loading/Unloading modules

Majorana is using modules from lmod to provide pre-installed software and to allow the user to choose from different versions of software.

To list the currently available modules, execute module spider. To see the currently loaded modules, run module list. If executed directly after log in, you might see something similar to the output below.

majorana_modules_1
Loaded modules after log in

Note that while some modules are currently loaded the module py3-scipy is not. This module contains a version of the Python package scipy. Without this package, running Python and importing scipy will result in an error.

Error message after importing scipy in Python
Error message after importing scipy in Python

Instead, running module load py3-scipy will load the module containing scipy (and some related modules that scipy depends on). After loading the module, importing scipy in Python will not result in an error anymore.

Successful import of scipy with loaded module py3-scipy
Successful import of scipy with loaded module py3-scipy

If you do not need to use a module anymore, or if you want to load a different version of the same module, you should unload the module. This can be achieved by running module unload py3-scipy. This unloads the modules and all of its dependencies.

Modules after unloading py3-scipy
Modules after unloading py3-scipy