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.eduJOBID=`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