#!/bin/bash
#PBS -q condo
#PBS -N notebook
#PBS -l nodes=1:ppn=1:ib
#PBS -l walltime=8:00:00
#PBS -V
#PBS -A YOUR-group-account
cd $PBS_O_WORKDIR
# choose your own unique port between 8000 and 9999
NOTEBOOKPORT=8181
# setup tunnel between computing and login node
ssh -N -f -R $NOTEBOOKPORT:localhost:$NOTEBOOKPORT $PBS_O_HOST
# launch the notebook
jupyter notebook --port=$NOTEBOOKPORT --no-browser > notebook.log
ssh -f -N -L 8181:localhost:8181 username@tscc-login$1.sdsc.edu
#!/bin/bash
#SBATCH --nodes 1
#### just 1 core (5.3GB RAM)
#SBATCH --ntasks-per-node 1
#SBATCH --partition shared
#### If you need a large memory(with maximum of 1.5T) uncomment below two lines
####SBATCH -p large-shared
####SBATCH --mem=10G
#SBATCH --time 8:00:00
#SBATCH --job-name notebook
#SBATCH --output notebook.log
# choose your own unique port between 8000 and 9999
NOTEBOOKPORT=8181
# setup tunnel between computing and login node
ssh -N -f -R $NOTEBOOKPORT:localhost:$NOTEBOOKPORT $SLURM_SUBMIT_HOST
# launch the notebook
ipython notebook --port=$NOTEBOOKPORT --no-browser
ssh -f -N -L 8181:localhost:8181 username@comet-ln$1.sdsc.edu