Page tree
Skip to end of metadata
Go to start of metadata

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>
  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= --no-browser
    [demo@skl-a-47 ~]$ jupyter notebook --ip= --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]
    [I 10:47:16.820 NotebookApp]  or
    [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:
        Or copy and paste one of these URLs:
    [I 10:56:29.944 NotebookApp] 302 GET /?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd ( 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.