Using Jupyter Notebooks¶
How to use a Jupyter notebook¶
Executing code in a Notebook: Jupyter notebooks provide “cells” within which is typed either Python code or markdown language (for formatted text). Choose the cell to execute by clicking in it with the mouse (the cursor must be in the desired cell). Hold down the shift key and press either enter or return (depending on keyboard type), or click the ‘Play’ button in the notebook toolbar, and the contents of the cell will be executed. If the cell type is code, and the cell contains python code, the code will be executed. If the cell type is markdown, then it will be rendered upon execution to yield nicely formatted text. There is a user guide for markdown cells in the Jupyter Notebooks documentation.
Opening Multiple Notebooks: Multiple notebooks and terminals can be open at a time. Notebooks and/or terminal windows can be arranged next to or on top of each other by dragging the notebook or terminal around by the top bar. Arranging the windows can be convenient when working in both a terminal and notebook at the same time, or when using another notebook as a reference.
JupyterLab Autosaves Notebooks: Note that JupyterLab autosaves notebooks at a default interval of 2 minutes unless working in the directory “notebooks/tutorial-notebooks/”, which is read-only (see How to use the Tutorial Notebooks).