Ask coding questions

← Back to all posts
How do i go about setting 'the MPLCONFIGDIR environment variable to a writable directory?'
JazzKeyboards

Matplotlib created a temporary config/cache directory at /tmp/matplotlib-wvc1s_4i 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.

Thank you in advance

Voters
eric_wang
DevsSaturdaysAI
JazzKeyboards
Comments
hotnewtop
Coder100

read this

Conclusion

It is only a warning, you can safely ignore it unless you really need those 2 ms of speed.

JazzKeyboards

@Coder100 OK. So if I understand you correctly, this warning should have no impact on program execution. Is that correct?

Coder100
JazzKeyboards

@Coder100 thank you

hoffm386

Given how slow all of the library imports are, I'm interested in trying to improve this even if it's "unnecessary"

Does anyone have any hints about the file system setup being used by repl.it, to figure out how to configure this?

techde

you cna go to that cache and check what your code should look like btw.

techde

Your not writing it to a dir