Read imports as setup. Commands such as import numpy as np, import sympy as sp, and import matplotlib.pyplot as plt make a library available under a short name; they have no mathematical output.
Read display commands as output choices. The last line of many notebook cells is displayed automatically, while print(...) explicitly displays a value.
In the labs, read the code as compressed mathematical notation. The important question is usually what object is represented, what operation is being performed, and what the output means.
Most sections below follow the same pattern. First, a short code fragment shows the kind of computation used in the labs. Then a reading guide translates code patterns into a mathematical reading, expected output or shape, and where the pattern is used. When a command has a common trap, a short warning explains what to watch for.