Laptop hanging on pyplot.show ()

I am working on an iPython Notebook and am trying to create a scatter plot. First I import matplotlib: import matplotlib.pyplot as plt. Then I run a very simple code to look at the scatter plot first. However, the graph is never displayed. It is as if some settings or conditions prevented the Notebook from displaying a graph.

enter image description here

Does anyone have an idea as to what will cause the code to freeze at this point?

+4
source share
1 answer

Make sure you enable inline printing through the magic function:

% matplotlib inline

%matplotlib notebook

, , , - - (, ).

+4

Source: https://habr.com/ru/post/1611502/


All Articles