diff --git a/README.md b/README.md index 73a7d3f..bf35d8f 100644 --- a/README.md +++ b/README.md @@ -130,27 +130,30 @@ If you would like to request a custom notebook, please [reach out](https://www.g ```bash -# To start a jupyter notebook in a specific directory -bash start.sh jupyter /path/to/dir +# To start a jupyter notebook in a specific directory ON the cluster resource +bash start.sh jupyter + +# If you don't specify a path on the cluster, it defaults to your ${SCRATCH} +bash start.sh jupyter /scratch/users/ # To start a jupyter notebook with tensorflow in a specific directory -bash start.sh py2-tensorflow /path/to/dir +bash start.sh py2-tensorflow # If you want a GPU node, make sure your partition is set to "gpu." # To start a jupyter notebook (via a Singularity container!) in a specific directory -bash start.sh singularity-jupyter /path/to/dir +bash start.sh singularity-jupyter ``` -Want to create your own Singularity jupyter container? Use [repo2docker](https://www.github.com/jupyter/repo2docker) and then specify the container URI at the end: +Want to create your own Singularity jupyter container? Use [repo2docker](https://www.github.com/jupyter/repo2docker) and then specify the container URI at the end. ```bash -bash start.sh singularity.jupyter /path/to/dir +bash start.sh singularity.jupyter # You can also run a general singularity container! -bash start.sh singularity /path/to/dir +bash start.sh singularity # To start tensorboard in a specific directory (careful here and not recommended, as is not password protected) -bash start.sh start /path/to/dir +bash start.sh start # To stop the running jupyter notebook server bash end.sh jupyter diff --git a/sbatches/sherlock/py3-jupyter.sbatch b/sbatches/sherlock/py3-jupyter.sbatch index d05b8e1..9297619 100755 --- a/sbatches/sherlock/py3-jupyter.sbatch +++ b/sbatches/sherlock/py3-jupyter.sbatch @@ -1,7 +1,7 @@ #!/bin/bash PORT=$1 -NOTEBOOK_DIR=$2 +NOTEBOOK_DIR=${2:-${SCRATCH}} cd $NOTEBOOK_DIR module load py-jupyter/1.0.0_py36 diff --git a/start.sh b/start.sh index 17795b3..31cffb6 100755 --- a/start.sh +++ b/start.sh @@ -84,5 +84,5 @@ instruction_get_logs echo echo "== Instructions ==" echo "1. Password, output, and error printed to this terminal? Look at logs (see instruction above)" -echo "2. Browser: http://sh-02-21.int:56845/ -> http://localhost:56845/..." +echo "2. Browser: http://sh-02-21.int:$PORT/ -> http://localhost:$PORT/..." echo "3. To end session: bash end.sh ${NAME}"