2. Create a new Jupyter notebook to run pyWaPOR

After creating an python environment with pywapor and jupyterlab following the step in Tutorial 1: Installing Jupyter Notebook, you are now able to open JupyterLab on your PC. From now, when you want to open JupyterLab, you will need to:

  • Open Miniforge Prompt and run this command line

mamba activate pywapor_env

  • Then run the command below to start JupyterLab

jupyter lab

Once the JupyterLab interface is opened in your web browser,  Click on the "Python" tile under "Notebook" in "Launcher" tab to create a new notebook.

JupyterLab opened in the browser. Click on the Python 3 tile.

(© Copyright CodeRefinery team)

You will see a new notebook named "Untitled.ipynb". To change the name of the notebook, right-click on the tab and select "Rename Notebook..."


Enter the name of this new notebook (e.g., "Test pywapor.ipynb") and click "Rename". 

Let's first have a look at the components in JupyterLab interface. See below for the explanation of its components.

Jupyter Lab user interface
(© Copyright CodeRefinery team)

  • Markdown cells contain formatted text written in Markdown, a lightweight markup language for creating formatted text using a plain-text editor.

  • Raw cells  contain raw text.

  • Code cells contain code to be interpreted by the kernel (e.g., Python, R, Julia, Octave/Matlab…). In this case, we are using Python kernel.

When you click on a cell, you can see and select the cell type in the tool bar (see below). For example, in your newly created notebook, the first cell is a Code cell. Try to explore what each button in the tool bar does by hovering over them.


In the "Next" page, you will learn how to run pywapor for a test case in this new notebook.