Recommendation

Below is my screenshot attached, I would like to be corrected with the error on this code below :backhand_index_pointing_down:

1 Like

Be sure you run the every cell in the notebook every time you open it.

The first cell is where the “plt” library is imported and defined.

1 Like

Okay, I will check now. Thanks.

1 Like

Cell -> Run All Above

is the simplest way to accomplish that.

1 Like

Mostly people import pyplot with alias as plt, so make sure you have alias with plt and cell which contains import pyplot as plt in notebook is executed before your code.

3 Likes

The notebook already has that code included.

There is no need to add code for that (in fact doing so may make the grader very unhappy).

1 Like

I didn’t add any code. I just run it hoping to see an image but it shows error.

1 Like

Okay, thanks.

1 Like