You must setup your own Python environment and Jupyter installation to use Jupyter Notebook.
- Go to https://www.python.org/downloads/source/
- Choose the “gzipped source tarball” for the Python release you want and copy the link location to be used with the
wget command below
- ssh to phoenix and perform the following commands to compile and install Python:
wget https://www.python.org/ftp/python/3.10.5/Python-3.10.5.tgz (or your preferring version from the link you copied above)
tar xzvf Python-3.10.5.tgz
./configure --prefix=/home/YOURUSERNAME/python3/ --with-openssl=/usr/local/openssl11
- Use the following 2 commands to use your Python environment:
- Use the following 2 commands to install Jupyter:
pip3 install jupyter
jupyter notebook --generate-config
- edit /home/YOURUSERNAME/.jupyter/jupyter_notebook_config.py and add the following line to end of the file:
c.NotebookApp.ip = '*'
Submitting a Jupyter Notebook job
- Type qjupyter at the command line and answer the questions. An example is given below.
[user@phoenix ~]$ qjupyter
This script will submit a Jupyter Notebook job.
You will need to setup your own Python environment and Jupyter installation.
Please see https://hpc.chem.wisc.edu/software/phoenix-software/jupyter-notebook/ for details.
Press Ctrl-C at any time to quit without job submission.
Please provide a job name:
How many cores do you wish to allocate to this job?
Which queue do you wish to use? (enter for default)
Please enter your Python Path:
Submitting your job named notebook1 to the default queue using 4 cores with a PYTHONPATH of
Please check notebook1.log in your home directory for compute node name and URL info.
Setup SSH tunnel to connect to Jupyter
- Look in the JOBNAME.log file in your home directory for the last few lines, similar to:
To access the notebook, open this file in a browser:
Or copy and paste one of these URLs:
Take note of the name of the compute node starting with compute- and the line starting with http://127.0.0.1:8888.
Following instructions for your operating system below: