NN and DL: week 2: error name np is not defined

There is a topic about that on the FAQ Thread. The short summary is that error means you have not run the earlier cells in the notebook. Try “Cell → Run All Above” and then run your test cell again. But please read the topic on the FAQ Thread: it includes some other important explanations to know if you are just getting used to how the Jupyter Notebooks work.