Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#!/bin/bash
#PBS -P <PROJECT>
#PBS -l select=1:ncpus=4:ngpus=1:mem=8gb
#PBS -l walltime=01:00:00
#PBS -m b
#PBS -M abcd1234@sydney.edu.au

# Load the libraries and software needed
module load python/3.8.2

# Change directories to wherever you want your notebook to serve from
cd /project/<PROJECT>/mydata

# Sanity check the hostname of the current compute node
echo $HOSTNAME > jupyter_output.txt

#Launch the notebook (and redirect the output/error to a file)
jupyter notebook --no-browser --ip=0.0.0.0 --port=11111 >> jupyter_output.txt 2>&1

...

​Now you should be able to go to http://localhost:8888/ in your browser copy the jupyter notebook key and use a notebook! Easy?
Note: you must specify the ip as 0.0.0.0, the choice of port is arbitrary and can be left as default 8888, but should be something not in use on Artemis or something reserved for another service.