QuickStart - Python
Python is an interpreted high-level general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant indentation.
Use Global Protect VPN: whether on or off-campus
Be sure vpn-groups selected when you connect.
Start an SSH session:
ssh your_netid@hpc.kennesaw.edu
Consider this as my_script.py
string1 = 'Hello'
string2 = ' World'
joined_string = string1 + string2
print(joined_string)
Create your my_python.pbs
#!/bin/bash
#PBS -l nodes=1:ppn=1
#PBS -l walltime=10:00:00
#PBS -m abe
#PBS -M your_email@kennesaw.edu
JOBID=`echo $PBS_JOBID | cut -f1 -d.`
module load Anaconda3
eval "$(conda shell.bash hook)"
conda activate myenv
cd ${PBS_O_WORKDIR}
python my_script.py
exit 0
Run the job script
$qsub my_python.pbs
Python 3 Documenation: https://docs.python.org/3/