This is an old revision of the document!
Jupyter is installed in most of the python modules. To make use of it you would do something like:
jupyter-notebook
However using it effectively on the cluster is a bit more complicated…
After logging into your account load the python module on the cluster as using the following command:
module add chpc/python/3.6.0_gcc-6.3.0
Set up your Jupyter Notebook using an interactive node on a single core as follows:
qsub -I -P PROJ0101 -q serial -l select=1:ncpus=1:mpiprocs=1:nodetype=haswell_reg
Advanced interactive node settings can be found here: Example interactive job request.
First things first – you are not the only person on the system, so it is important to set up authentication on your notebook so that not everyone gets access to your notebook (and worse – your data).
So first one needs a configuration file, this can be done by passing the generate-config parameter to jupyter as follows:
[USERNAME@cnode0010 ~]$ jupyter-notebook --generate-config Writing default config to: /home/USERNAME/.jupyter/jupyter_notebook_config.py
Next you need to generate your password (remember it – you'll need it when you connect later):
python
from notebook.auth import passwd passwd() Enter password: Verify password: 'sha1:f27008fdb0eb:4c2f305d5e230edca16c7059882ba3ba63bee03b'
Now edit the jupyter_notebook_config.py file, specifically edit the c.NotebookApp.passwd line (remember to uncomment it, and don't just copy and paste my hash in):
c.NotebookApp.password = 'sha1:f27008fdb0eb:4c2f305d5e230edca16c7059882ba3ba63bee03b'