Notebooks in OpenScienceLab run Python kernels corresponding to a variety of conda software environments. Since notebooks have different software dependencies, it is important to run them in an appropriate kernel.
Each ASF-developed Jupyter Book of data recipes includes a notebook that creates the required conda environment.
At this time, we still have some Jupyter Notebooks that have not yet been organized into Jupyter Books. Each of these notebooks is pre-configured to use its required kernel. See our Conda environments documentation for instructions on building those software environments.
How to Switch Notebook Kernels¶
- Click the current kernel name in the upper right corner of a notebook.
- A window with a list of available kernels will appear.
- Select a
kernel
.

Changing a notebook’s kernel.
Restarting a Jupyter Notebook Kernel¶
- Click in the notebook tab to select it.
- Select one of the following from the
Kernel
Menu:
Restart Kernel
: Restarts the kernel but leaves any old code cell output in place.- (Recommended)
Restart Kernel and Clear All Outputs...
: Restarts the kernel and removes old code cell output. Restart Kernel and Run up to Selected Cell...
: Restarts the kernel and run up to the cell where you selected.Restart Kernel and Run All Cells...
: Restarts the kernel and runs all the code cells. This only works with notebooks that do not require user input.