Error on lab

When I’m trying to run code on my lab it keeps saying error.

1 Like

Perhaps when you opened the notebook, you did not run the first cell - where numpy is imported and assigned as ‘np’.

2 Likes

Thank you! That was the problem.

2 Likes

Tip: Every time you open a notebook, run all of the cells starting from the top.

Jupyter will save your notebook automatically (every few minutes), but it does not save the state of the runtime environment. So you have to re-create it by running all of the cells.

Tip 2: Before you submit a notebook for grading, be sure you use “Save and Checkpoint” first.