-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from carlos-encs/jupyter-script
Jupyter-notebooks script and instructions
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/encs/bin/tcsh | ||
|
||
## Script for https://nag-devops.github.io/speed-hpc/#jupyter-notebooks | ||
## since it is salloc (or srun) (e.g salloc -p ps --mem=4000 --x11 -t 0-06:00) no need to configure cluster settings because | ||
## it would choose the proper computational node | ||
|
||
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/openiss-cuda-conda-jupyter.sif \ | ||
/bin/bash -c '/opt/conda/bin/jupyter notebook --no-browser --notebook-dir=/speed-pwd \ | ||
--ip="*" --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 ... | ||
|
||
# A token is generated when execution is successful | ||
|
||
## [I 09:10:49.547 NotebookApp] Jupyter Notebook 6.5.2 is running at: | ||
## [I 09:10:49.547 NotebookApp] http://speed-xx.encs.concordia.ca:8888/?token=xxxxxxxxxxxxxxxxxxxx | ||
## [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 |