IPython, “name ‘plt’ not defined”
You ran one line, not the whole file. You can see the problem by carefully reading the traceback. Line 9 in the script is line 1 in the traceback: —-> 1 plt.show() The solution is to run the whole file not one line, i.e. click Run All not Run.