Lab01 - Getting - Started
Lab01 - Getting - Started
pg. 1
Description of the Command MacOS/LINUX Windows
pg. 2
Important Symbols
Wild card/ equivalent to any number of symbol or character * *
Current directory . .
Go on level up directory form the current directory .. ..
Return to root directory ~ ~
The first thing a user notices on the Jupyter Notebook is the cell section.
A cell is a container for text to be displayed in the notebook or code to be executed by the
notebook’s kernel.
Other than that, a kernel is the computational engine that executes the code contained in the
notebook document.
The kernel can be selected or changed with the Select Kernel section as displayed in the image
on the right where you can see multiple options and you can choose with your version of Python.
Cells
Cells form the body of the notebook. In the screenshot above, the blue marked section is the code
shell. There are two types of cells which we will cover and use on a regular basis.
The code cell is the section where we write the code and execute it. When the code is executed, the
result is seen below the cell.
pg. 3
The markdown cell is the section where we write our markdown and execute whichoutputs the
text in Markdown Format.
Quick Hints
Whenever a new notebook is opened, the first cell is always a code cell.
To run a cell, we can click the button to the left of the cell or either press Ctrl + Enter.
The + Code button generally adds up a new cell in the notebook. Similarly, the + Markdown
button adds a new markdown cell in the notebook.
The Run All button runs every cell in the notebook from the start. It stops when the error is
encountered and the errors are printed right below the cell where the error is.
The Clear Output of all Cells button clears the output of all the cells and the clean code and
markdown format is shown.
The Restart button restarts the kernel. This button is handy when we face kernel crashes and
problems.
The Variables button is handy when debugging. The button displays all the names of the
variables assigned in the notebook with the type of the value, the size and the value itself.
pg. 4
pg. 5