Setting up a Jupyter Notebook

The 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. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more. The following instructions will explain how to setup a jupyter notebook securely.

  1. ssh into the cluster ssh -X <userID>@sporcsubmit.rc.rit.edu
  2. start a sinterative job with the configuration that you will need (e.g. memory, cores, time, gres)
  3. load jupyter notebook 
    • spack load py-notebook/hfaavup or the version you require
    • to find other versions use spack find py-notebook
  4. start jupyter notebook jupyter notebook --ip=0.0.0.0 --no-browser
    [demo@skl-a-47 ~]$ jupyter notebook --ip=0.0.0.0 --no-browser
    [I 10:47:16.816 NotebookApp] The port 8888 is already in use, trying another port.
    [I 10:47:16.820 NotebookApp] Serving notebooks from local directory: /home/slpits
    [I 10:47:16.820 NotebookApp] The Jupyter Notebook is running at:
    [I 10:47:16.820 NotebookApp] http://skl-a-47.rc.rit.edu:8889/?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd
    [I 10:47:16.820 NotebookApp]  or http://127.0.0.1:8889/?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd
    [I 10:47:16.820 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [C 10:47:16.823 NotebookApp]

        To access the notebook, open this file in a browser:
    file:///home/slpits/.local/share/jupyter/runtime/nbserver-27411-open.html
        Or copy and paste one of these URLs:
    http://skl-a-47.rc.rit.edu:8889/?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd
         or http://127.0.0.1:8889/?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd
    [I 10:56:29.944 NotebookApp] 302 GET /?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd (129.21.171.201) 0.50ms

  5. From a new local terminal window ssh into sporcsubmit using the -L flag
  6. To access the notebook, copy and paste the appropriate URL from the output above into a browser.