Docs

Running python on JASMIN

 

Share via

Running python on JASMIN

On the JASMIN scientific analysis servers and on the Lotus batch cluster, we currently support Python version 3.11 with Jaspy.

When you first log in, the default version of Python is that provided by the operating system. This is different to the one you shoud use for your work, and we recommend using the Jaspy environments. In this example, we activate the current Jaspy environment before running Python.

module load jaspy

Check the Python version:

python -V
Python 3.11.9

Run a script:

python your_script.py

If you want to use an executable script (which can be invoked just by name), then the recommended line to put at the top of the script would be:

#!/usr/bin/env python

after which you should set “write” permission, and then you can run it without the “python " prefix:

chmod 755 your_script.py
./your_script.py

You should work with Python on the scientific analysis servers. Login servers do not have any software installed, or filesystems mounted other than home directories.

Last updated on 2024-10-02 as part of:  updates oct 02 for r9 env (7db335bb5)
Follow us

Social media & development