Exit status 137

Hello! :grinning:
When I run my program it brokes and returns this:

Matplotlib created a temporary config/cache directory at /tmp/matplotlib-dlsn4s0n because the default path (/config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
Killed
exit status 137

Why is it?

Here’s my code

The process was killed, either by you (using Ctrl-C, Ctrl-Z, etc) or it was killed by your OS because it ran out of memory. If it was killed by your OS, you might consider following the suggestion to set MPLCONFIGDIR to a writable directory.

Thanks, Ariel.

I didn’t use any of these commands.

How can I set MPLCONFIGDIR to a writable directory? Sorry for my incompetence.

Exit 137 is a common issue in the challenge. As far as I understand, it means the program ran out of memory it can use.
Make sure you don’t have similar programs running (like Jupyter) and scale down the size of your figures.

Sorry, I’m not able to run all my program in boilerplate.
I’ve run it in my vsc and it works properly.

I’ve tried to scale down size of my figures like this:

fig, ax = plt.subplots(figsize= ())

In figsize I’ve tried different values and neither of them works. Always same broken message.