Docs
Running python on JASMIN
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 jaspyCheck the Python version:
python -V
Python 3.11.9Run a script:
python your_script.pyIf 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 pythonafter which you should set “write” permission, and then you can run it without the “python " prefix:
chmod 755 your_script.py
./your_script.pyYou should work with Python on the scientific analysis servers. Login servers do not have any software installed, or filesystems mounted other than home directories.