Using python scripts on Alma - Environments
Creating an environment with your installations will enable you to use python scripts on Alma in a reproducible manner. The environment can be shared with colleagues, help desk, and collaborators to ensure that the same environment is used for the same results. It also means that in the future you can recreate the environment to run the same scripts.
-
First get an interactive session:
-
Check that mamba is working
If not make sure you have followed the setup mamba instructions -
Create a new environment
-
Check you have the environment you expect
-
Installing packages It is preferable to use mamba to install python packages like matplotlib etc
-
If you need to use a python script, you can use the python command
But it is better to use mamba to install packages where possible. -
Export and import the environment
-
Deactivate the environment
-
Remove the environment Warning this means to remove all the packages and the environment, only do this if you really want to.
-
Check what environments I have available