Example. Run a simple script.
1. Log into a computing node
Request a compute node
sdev
Load the modules required for the Sherlock environment
module load python/3.9.0
Activate your python environment
Note: Replace the environment path
myproject_env
# source <environment>/bin/activate
source "/home/users/bastudil/myproject_env/bin/activate"
Run your python script
# python3 myfile.py # call with no arguments
python3 myfile.py -myPID 2 # call with arguments
Complete code
sdev # ask for a compute node
module load python/3.9.0 # load python
source "/home/users/bastudil/myproject_env/bin/activate" # load the environment
python3 myfile.py -myPID 2 # call python with arguments