1 of 17

Use JupyterLab@NERSC

BerkeleyGW-Team

08/18/2025

2 of 17

Log in with your training account

If jupiter redirect you automatically to your usual NERSC’s account, open a new windows in incognito mode.

Click here.

3 of 17

Select institution (NERSC should be available for training accounts).

4 of 17

Enter training account username and password.

5 of 17

Start a Perlmutter session.

6 of 17

Wait for server to start up (up to a min.)

7 of 17

Start a terminal window

8 of 17

Do your calculations in this window.

You can open multiple windows by clicking “+” here or click File > New > your choice

Quickly navigate to $SCRATCH and monitor the files

9 of 17

Plotting with Jupyter Notebook

Start a Jupyter Notebook

10 of 17

Plotting with Jupyter Notebook

Right click to select Rename to rename the file

11 of 17

Reopen an existing Notebook file

Double click to open the Notebook file in a new window.

12 of 17

Plotting with Jupyter Notebook

13 of 17

Simple example: sine function

Run script

14 of 17

Simple example: sine function

15 of 17

Read data from file

Use io.open and np.genfromtxt to read a file

Replace workdir with your own path

Choose the name of the file from which you want to read

16 of 17

Save a plot

Use plt.savefig to save a plot.

Choose the path and the name of your image file.

17 of 17

View an image file

Double click to open the image file in a new window.