PYTHON on RAAD
Introduction
Python is a programming language which lets you transform your idea into a program easily with built in functions and diverse libraries available. Python can be used for almost every application you want to work with For Example: Numerical Solution, Machine learning, Image Processing etc.
Versions available on RAAD
- Python 2.7.9
- Python 3.4.3
Getting Started with Python
Load the appropriate version in RAAD.
module load python/<version_number>
For Example;
module load python/2.7.9
Libraries Available
We keep updating list of libraries we maintain for Python distribution at RAAD, to check the most recent list of libraries available you can issue below commands on RAAD;
module load python/2.7.9
pip2.7 list
- appdirs (1.4.0)
- backports.shutil-get-terminal-size (1.0.0)
- backports.ssl-match-hostname (3.5.0.1)
- Beaker (1.8.0)
- bls (0.0.1)
- boto (2.39.0)
- ClusterShell (1.7)
- Cython (0.23.4)
- decorator (4.0.6)
- emcee (2.1.0)
- funcsigs (0.4)
- ipdb (0.10.0)
- ipython (4.2.0)
- ipython-genutils (0.1.0)
- lmfit (0.9.3)
- lxml (3.4.4)
- m3-libxml2-python (2.6.9)
- Mako (1.0.1)
- MarkupSafe (0.23)
- matplotlib (1.4.3)
- mercurial (3.6.3)
- mock (1.0.1)
- mpmath (0.19)
- natgrid (0.2.1)
- networkx (1.10)
- nose (1.3.4)
- numexpr (2.4.6)
- numpy (1.10.4)
- pandas (0.18.1)
- pathlib2 (2.1.0)
- patsy (0.4.1)
- pexpect (4.1.0)
- phoebe (2.0a2)
- pickleshare (0.7.2)
- Pillow (3.1.0)
- pip (8.1.2)
- protobuf (3.0.0b2)
- ptyprocess (0.5.1)
- py (1.4.31)
- pycuda (2015.1.3)
- pyephem (3.7.6.0)
- pyfits (3.4)
- pyparsing (2.0.3)
- pytest (2.8.7)
- python-dateutil (2.4.0)
- pytools (2016.1)
- pytz (2014.10)
- readline (6.2.4.1)
- scikit-image (0.11.3)
- scipy (0.17.0)
- setuptools (18.7.1)
- simplegeneric (0.8.1)
- six (1.10.0)
- statsmodels (0.6.1)
- tables (3.2.2)
- tensorflow (0.8.0)
- Theano (0.7.0)
- traitlets (4.2.1)
- uncertainties (2.4.8.1)
- virtualenv (14.0.5)
- wheel (0.29.0)
Running your first Code
RAAD is an HPC system and most of the jobs are expected to be batch jobs. Submit an interactive or batch job and you can invoke Python from command line.
Python with GPU
Theano library has built in capability of utilizing GPU. In RAAD we have 6 nodes with 02 GPU's each. If you need to use Theano, you should submit your job in graphics queue.