Python + Conda in a Job
Using python with anaconda on the cluster is nearly identical to how you use it on your frontend to configure environments.
For example, if you follow the instructions in the section on creating Conda Environments on the node you log in on, when you submit jobs you can then use the same environments like this:
If you qsub the above files, you will be provided with a single output (output.out) that contains the outputs of hello.py. In this example, if the conda environment aml35 has a python 3.5 installation active, it should report back that the version of Python is 3.5 when it runs on the cluster. You can also manually create files from within your python script, just like you would on a local machine.
Last updated