Jupyter: Difference between revisions

From Cheaha
Jump to navigation Jump to search
(Starting up a new page for jupyter notebook.)
 
(Description of how to run Jupyter Notebook interactively using Anaconda3/5.2.0)
Line 1: Line 1:
[http://jupyter.org/ Jupyter Notebook]  is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. For more information on jupyter notebook, click [http://jupyter.org/documentation here].
[http://jupyter.org/ Jupyter Notebook]  is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. For more information on jupyter notebook, click [http://jupyter.org/documentation here].
== Jupyter on Cheaha ==
The cheaha cluster supports Jupyter notebooks for data analysis, but such jobs should be running using the SLURM job submission system to avoid overloading the head node. To run a Jupyter Notebook on cheaha, login to cheaha from your client machine and start an [https://docs.uabgrid.uab.edu/wiki/Slurm#Interactive_Job interactive job]
<pre>
srun --ntasks=1 --cpus-per-task=4 --mem-per-cpu=4096 --time=08:00:00 --partition=medium --job-name=JOB_NAME --pty /bin/bash
module load Anaconda3/5.2.0
unset XDG_RUNTIME_DIR
jupyter notebook --no-browser --ip=$host
</pre>
The server should start running and provide you with a URL.
Now, start up a new tab/terminal/window on your client machine, and relogin to cheaha, using
<pre>
ssh -L 8888:c00XX:8888 BLAZERID@cheaha.rc.uab.edu
</pre>
where c00XX is the compute node where you started the jupiter notebook.
Now access the link generated by jupyter notebook (change c00XX to localhost) on your client machine by opening your browser. It should be running.

Revision as of 19:41, 21 August 2018

Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. For more information on jupyter notebook, click here.

Jupyter on Cheaha

The cheaha cluster supports Jupyter notebooks for data analysis, but such jobs should be running using the SLURM job submission system to avoid overloading the head node. To run a Jupyter Notebook on cheaha, login to cheaha from your client machine and start an interactive job

srun --ntasks=1 --cpus-per-task=4 --mem-per-cpu=4096 --time=08:00:00 --partition=medium --job-name=JOB_NAME --pty /bin/bash
module load Anaconda3/5.2.0
unset XDG_RUNTIME_DIR
jupyter notebook --no-browser --ip=$host

The server should start running and provide you with a URL.

Now, start up a new tab/terminal/window on your client machine, and relogin to cheaha, using

ssh -L 8888:c00XX:8888 BLAZERID@cheaha.rc.uab.edu

where c00XX is the compute node where you started the jupiter notebook.

Now access the link generated by jupyter notebook (change c00XX to localhost) on your client machine by opening your browser. It should be running.