Last active
December 20, 2019 17:17
-
-
Save zonca/5f8b5ccb826a774d3f89 to your computer and use it in GitHub Desktop.
IPython/Jupyter notebook on Comet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#SBATCH --nodes 1 | |
#### Choose either 1 entire Comet node or just 1 core | |
#### 1 core is charged 1/24th of a full node but only | |
#### has ~5GB of RAM. | |
#### Choose by leaving only 1 # before SBATCH | |
#### entire node (128GB RAM) | |
####SBATCH --ntasks-per-node 24 | |
####SBATCH --partition compute | |
#### just 1 core (5.3GB RAM) | |
#SBATCH --ntasks-per-node 1 | |
#SBATCH --partition shared | |
#SBATCH --time 00:30: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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh -f -N -L 8181:localhost:8181 YOURUSERNAME@comet-ln$1.sdsc.edu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See full post on http://zonca.github.io/2015/09/ipython-jupyter-notebook-sdsc-comet.html