The CSF2 has been replaced by the CSF3 - please use that system! This documentation may be out of date. Please read the CSF3 documentation instead. To display this old CSF2 page click here. |
Python
Overview
Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Python claims to “combine remarkable power with very clear syntax”, and its standard library is large and comprehensive. Its use of indentation for block delimiters is unique among popular programming languages.
Version 2.7.1 is installed on the CSF
It is highly recommended that users use the Anaconda Scientific Python Distribution. It is a distribution of python specifically aimed at scientists and contains 100+ common libraries. The various versions of Anaconda provide newer versions of python (including Python 3.x).
Set up procedure
To set up the Python environment you need to issue the following command
module load apps/gcc/python/2.7.1 # (you are highly recommended to use one of the anaconda python modulefiles instead!)
Running the application
After loading the modulefile you need to have a batch job submission script.
Please see the Anaconda Scientific Python Distribution page for detail on how to run the application.
Extra Modules available
Note: 100+ scientific libraries are available in the Anaconda Scientific Python Distribution which was installed in Feb 2014. It includes more recent versions of those listed below.
In addition to the Python standard library, the following modules have been installed for use with Python 2.7.1
- numpy v1.5.1 – Numpy is the fundamental package needed for scientific computing with Python
- scipy v0.9.0 – Scipy is an open source library of algorithms and mathematical tools for the Python programming language.
- nose v1.0.0 – A unittest-based testing framework for python that makes writing and running tests easier