Spyder Console disables matplotlib interactive build

I do some builds using matplotlib in the Spyder GUI. I just want these numbers to be done quietly in the background and saved in the file path. I run my scripts from the console, and although the numbers are created and saved in order, I cannot stop them from popping up in my small windows (approximately 240 graphs, so this causes memory problems).

I scattered the plt.ioff () command all over the script, but it doesn't seem to help

Any ideas? Greetings

+4
source share
1 answer

, . script:

import matplotlib as mpl
mpl.use('Agg')

, , .

+3

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


All Articles