Jupyter Notebook
Getting started with Jupyter Notebook.
ExCl → User Documentation → Jupyter Quick Start
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).
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 want to access.
Specify the ports that you want to use. Choose a different number from the default so that you don't conflict with other users.
From your local machine connect to pcie using login.excl.ornl.gov as a proxy and local forward the jupyter port.
(Optional) Load the anaconda module if you don't have jupyter notebook installed locally.
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 withjupyter notebook password
if you don't want to use the access tokens.
If you ssh client is too old for proxyjump to work, you can always break up the process into anouther step.
From your local machine connect to login.excl.ornl.gov and local port forward port 8888.
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>
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.
From your local machine connect to login.excl.ornl.gov using MobaXterm.
Go to tools and click on MobaSSHTunnel. Use MobaSSHTunnel local forward port 8888.
Click on MobaSSHTunnel
Click on New SSH Tunnel
Local port forward 8888
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>
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.
Open Visual Studio Code
Make sure you have the Remote - SSH extension installed.
Setup .ssh
Navigate to the remote explorer settings.
Chose the user .ssh config.
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.
Open Folder
Run the Jupyter notebook using the built-in terminal.
Open the automatically forwarded port.
Using the already installed Anaconda
Anaconda3 is already installed in ExCL as a module and can be used to run Jupyter notebooks. To load the module use module load anaconda3
. Now you have access to the jupyter notebook
command.
Installing Jupyter Notebook with Anaconda
This section is a quick start to installing an anaconda python environment with Jupyter notebook.
Follow Conda and Spack Installation to install Conda.
Install Jupyter Notebook.
Jupyter with conda environments
Create conda 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.
Last updated