-
Launch from command line:
$ jupyter notebook
-
Click on existing notebook, or make new one:
-
Enter code in cells and the hit
shift + enter
to run code:In [1]: a, b = 1, 2 In [2]: print(a+b) 3
alt/option + enter
runs code and inserts new cell below.
-
Many more options from menu bar:
Insert
allows you to insert cellsCell
allows specific control on how to run cellsKernel
controls the Python kernel used to run calculations. Restart kernel from here if things get stuck!
-
Cells can be markdown or code - controlled from dropdown menu or from
cell
menu.