arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Jupyter Notebook

Getting started with Jupyter Notebook.

ExClarrow-up-right → User Documentation → Jupyter Quick Start

hashtag
Installing Jupyter

Since there are many ways to install Jupyter using various python management tools, I will not reproduce the documentation here. The official documentation for installing Jupyter can be found at Project Jupyter | Installing Jupyterarrow-up-right. However, I will highlight the methods of using Jupyter with UVarrow-up-right, running Jupyter Notebooks in VS Codearrow-up-right, and the alternative to Jupyter notebooks, Marimo | ExCL User Docsarrow-up-right. These methods are all the methods that I typically use when working with python notebooks.

hashtag
Jupyter with UV

See the UV documentation, . This documentation is well written and covers:

hashtag
Jupyter kernels using virtual environments

See . Although , the following steps are still a good way to manually create and use a kernel from Jupyter.

Create a python virtual environment and activate it. Then install ipykernel and then install the kernel for use in Jupyter.

Use jupyter kernelspec list to view all the installed Jupyter kernels.

To uninstall a Jupyter kernel use uninstall.

hashtag
Accessing a Jupyter Notebook Running on ExCL

A Jupyter notebook server running on ExCL can be accessed via a local web browser through port forwarding the Jupyter notebook's port. By default, this is port 8888 (or the next available port). This port might be in use if someone else is using running a notebook. You can specify the port with the --port flag when launching the Jupyter notebook. To use a different port just replace 8888 with the desired port number. In order to port forward from an internal node, you have to port forward twice, once from your machine to login.excl.ornl.gov and once again from the login node to the internal node (i.e. pcie).

hashtag
Using FoxyProxy (Recommended)

You can use directly connect to the server running on a worker node. If I’m running a Jupyter Notebook on zenith2 with the command jupyter notebook, I can connect to the notebook directly using the printed message:

I hold control on Windows/Linux and click the URL to open it in my local browser.

hashtag
Detailed instructions for Linux/Mac

These instructions go over how to access a Jupyter notebook running on the pcie node in the ExCL Cluster. If you want to access a different system, then replace pcie with the system you intend to access.

  1. Specify the ports that you intend to use. Choose a different number from the default so that you don't conflict with other users.

  2. From your local machine connect to pcie using login.excl.ornl.gov as a proxy and local forward the jupyter port.

  3. (Optional) Load the anaconda module if you don't have jupyter notebook installed locally.

If you ssh client is too old for proxyjump to work, you can always break up the process into another step.

  1. From your local machine connect to login.excl.ornl.gov and local port forward port 8888.

  2. From the login node connect to pcie and local port forward port 8888

  3. Launch the Jupyter server on pcie

hashtag
Detailed instructions for Windows with MobaXterm

These instructions go over how to access a Jupyter notebook running on the pcie node in the ExCL Cluster.

  1. From your local machine connect to login.excl.ornl.gov using MobaXterm.

  2. Go to tools and click on MobaSSHTunnel. Use MobaSSHTunnel local forward port 8888.

    Click on MobaSSHTunnel

hashtag
Detailed instructions for Windows with Visual Studio Code

These instructions go over how to access a Jupyter notebook running on the quad00 node in the ExCL Cluster using Visual Studio Code to handle port forwarding.

  1. Open Visual Studio Code

  2. Make sure you have the Remote - SSH extension installed.

  3. Setup .ssh

Using Jupyter as a standalone toolarrow-up-right
  • Using Jupyter with a non-project environmentarrow-up-right

  • Using Jupyter from VS Codearrow-up-right

  • Launch the Jupyter server on pcie
  • Connect to the Jupyter notebook using a web browser on your local machine. Use the token shown in the output from running the Jupyter server. Url: http://localhost:<local_port>/?token=<token>. You can also configure jupyter to use a password with jupyter notebook password if you don't want to use the access tokens.

  • Connect to the Jupyter notebook using a web browser on your local machine. Use the token shown in the output from running the Jupyter server. Url: http://localhost:8888/?token=<token>
    Click on New SSH Tunnel
    Local port forward 8888

    Local port forward 8888

    Click the play button to start port forwarding

    Click the play button to start port forwarding

  • From the login node connect to pcie and local port forward port 8888

  • Launch the Jupyter server on pcie

  • Connect to the Jupyter notebook using a web browser on your local machine. Use the token shown in the output from running the Jupyter server. URL: http://localhost:8888/?token=<token>

  • Navigate to the remote explorer settings.
    Chose the user .ssh config.

    Chose the user .ssh config.

    Add the remote systems to connect to with the proxy command to connect through the login node.

    Add the remote systems to connect to with the proxy command to connect through the login node.

  • Connect to the remote system and open the Jupyter folder.

    Connect step 1
    Open Folder

    Open Folder

  • Run the Jupyter notebook using the built-in terminal.

    Run Jupyter
  • Open the automatically forwarded port.

    Open Port
  • Using uv with Jupyter | uvarrow-up-right
    Using Jupyter within a projectarrow-up-right
    Creating a kernelarrow-up-right
    Installing packages without a kernelarrow-up-right
    How To Setup Jupyter Notebook In Conda Environment And Install Kernel - Python Engineer (python-engineer.com)arrow-up-right
    I no longer recommend using conda in ExCLarrow-up-right
    FoxyProxyarrow-up-right
    MobaXTerm SSH
    Click on MobaSSHTunnel
    Click on New SSH Tunnel
    SSH Extension VS Code
    Navigate to the remote explorer settings.
     $ ssh -L 8888:localhost:8888 pcie
     $ jupyter notebook
    pip install ipykernel
    ipython kernel install --user --name=<any_name_for_kernel>
    jupyter kernelspec list
    jupyter kernelspec uninstall <unwanted-kernel>
    [I 2026-02-18 16:50:15.204 ServerApp] Jupyter Server 2.17.0 is running at:
    [I 2026-02-18 16:50:15.204 ServerApp] http://zenith2.ftpn.ornl.gov:8888/tree
    [I 2026-02-18 16:50:15.204 ServerApp]     http://127.0.0.1:8888/tree
    export REMOTE_PORT=8888
    export LOCAL_PORT=8888
    ssh -L $LOCAL_PORT:localhost:$REMOTE_PORT -J [email protected] $USER@pcie
    module load anaconda3
     $ ssh -L 8888:localhost:8888 <username>@login.excl.ornl.gov
     $ ssh -L 8888:localhost:8888 pcie
     $ jupyter notebook
    export REMOTE_PORT=8888
    jupyter notebook --port $REMOTE_PORT