...
The notebook will stay running for the duration of the job so you can reconnect to it if needed using the URL. If you forget the URL, you can reprint the URL by using the --get-netbook-url option along with the SLURM job id as follows:
Code Block | ||
---|---|---|
| ||
(base) [jsp2205@axon ~]$ sjupyter --get-notebook-url=45737 To access the notebook, open this file in a browser: file:///home/jsp2205/.local/share/jupyter/runtime/nbserver-86057-open.html Or copy and paste one of these URLs: http://10.198.24.59:8614/?token=9c53efc98ab7757cb102b875bfee4c5da858f801ae90b906 |
...
sjupyter can also be run with any of the standard sbatch flags, so if you want to specify exactly what resources should be available to the Jupyter notebook instance, you may do so by appending sbatch options to the command you run. For instance, the command below requests that 3 GPUs and 16 GB of memory per CPU be available to the Jupyter notebook:
Code Block | ||
---|---|---|
| ||
(base) [jsp2205@axon slurm]$ sjupyter --mem-per-cpu=16G --gres=gpu:3 Waiting for the Jupyter Notebook SLURM job to start... . Jupyter Notebook is starting... .............................. Jupyter Notebook has started To access the notebook, open this file in a browser: file:///home/jsp2205/.local/share/jupyter/runtime/nbserver-187906-open.html Or copy and paste one of these URLs: http://10.198.24.59:8074/?token=298fbd14329110b21ecb0d2765858fa836cd6694edabb502 To turn off Jupyter notebook, run "scancel 45747". To reprint the URL for the Jupyter notebook, run "/usr/local/bin/sjupyter --get-notebook-url=45747". |
...