Python and R
Python
Use module spider python to find available Python environments. Load the appropriate version before running Python or installing packages so that the interpreter and packages match. Check the active interpreter with which python and python --version.
For a Python batch job, load the same module in the Slurm script and run your script with srun python analysis.py. Install project dependencies in a user-controlled environment appropriate to the selected Python version. Confirm package and network access requirements with HPCC support.
R
Use module spider R to locate R and load the appropriate module. A noninteractive script can be run in an allocated Slurm job with srun Rscript analysis.R. Install user packages in an appropriate user library and load them with library() in the script.
Before Running
Stage input files to scratch, include the partition, QoS, and project WCKey as appropriate, and request sufficient time and memory. Check the module system for available Python and R versions.