To use Python on the CLA Linux compute servers, you will first need to load the associated module. There are a few different Python distributions available for you to choose from.
Distribution | Module name | Default IDE |
Anaconda Python |
python/conda/$version |
spyder |
Enthought Canopy |
python/canopy/$version |
canopy |
Intel Python |
intel/python-$version |
None |
To see what versions of the various distributions are available, look for the module names from the above table in the output of the 'module avail' command:
module avail
To use Python, just decide which distribution and version you would like to use and load the module. In this example, we will be using python/conda/3.6.
module load python/conda/3.6
From there, you can:
- use python interactively
ipython
- run your script from the command line
python myscript.py
- launch the associated IDE (except for intel/python which doesn't come with a default IDE)
spyder