CMPUT 175 Lecture #2
CMPUT 175 Lecture #2
Introduction to Foundations
of Computing
A Quick Introduction to
Jupyter Notebook
A Cell
to run a cell
Variables and
functions persist in
Current cell is framed in green subsequent cells
January 17, 2024 © Osmar R. Zaïane : University of Alberta 4
Jupyter Notebook and OS
https://www.geeksforgeeks.org/how-to-install-jupyter-notebook-on-macos/
Windows
Mac OS
Linux
https://linux.how2shout.com/how-to-install-jupyter-on-ubuntu-20-04-lts-linux/
To create a jupyter
Notebook per se click
on the “New” button
Cell
Python Kernel
Python Kernel 1
Notebook n
Cells You can rerun a cell or all cells
Python Kernel n
…
Each Notebook has its
own kernel.
You can shutdown or
restart individual kernels
January 17, 2024 © Osmar R. Zaïane : University of Alberta 13
How does it work
Now that you have your web server running
Your Notebook server is active
You created a Notebook with python kernel
You can write python code in your cells
interactively
We are just
exploring the
data
Probably missing
values entered as
a string?
January 17, 2024 © Osmar R. Zaïane : University of Alberta 19
Let’s explore further
Let’s locate those
profits that are
not numeric
Notebook