From 682c55f397871b5ce677fccac31a26f84e463261 Mon Sep 17 00:00:00 2001 From: carlos-encs <110119864+carlos-encs@users.noreply.github.com> Date: Fri, 3 May 2024 10:35:42 -0400 Subject: [PATCH] Update jupyter.sh, one line command --- src/jupyter.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/jupyter.sh b/src/jupyter.sh index 4b78332..401f1e3 100755 --- a/src/jupyter.sh +++ b/src/jupyter.sh @@ -7,10 +7,7 @@ module load singularity/3.10.4/default # Executing singularity image -srun singularity exec -B $PWD\:/speed-pwd,/speed-scratch/$USER\:/my-speed-scratch,/nettemp \ - --env SHELL=/bin/bash --nv /speed-scratch/nag-public/jupyter-pytorch-cuda.sif \ - /bin/bash -c '/opt/conda/bin/jupyter notebook --no-browser --notebook-dir=/speed-pwd \ - --ip="*" --port=8888 --allow-root' +srun singularity exec -B $PWD\:/speed-pwd,/speed-scratch/$USER\:/my-speed-scratch,/nettemp --env SHELL=/bin/bash --nv /speed-scratch/nag-public/jupyter-pytorch-cuda.sif /bin/bash -c '/opt/conda/bin/jupyter notebook --no-browser --notebook-dir=/speed-pwd --ip="0.0.0.0" --port=8888 --allow-root' ## If you receive an error like: FATAL:container creation failed: exec: "/usr/bin/nvidia-container-cli" ## remove the parameter: --nv and execute again srun singularity ... @@ -22,4 +19,4 @@ srun singularity exec -B $PWD\:/speed-pwd,/speed-scratch/$USER\:/my-speed-scratc ## [I 09:10:49.547 NotebookApp] or http://127.0.0.1:8888/?token=xxxxxxxxxxxxxxxxxxxx ## [I 09:10:49.547 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). -# Continue with the ssh tunnel creation as described in: https://nag-devops.github.io/speed-hpc/#jupyter-notebooks \ No newline at end of file +# Continue with the ssh tunnel creation as described in: https://nag-devops.github.io/speed-hpc/#jupyter-notebooks