Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set matplotlib MPLCONFIGDIR env var in production #132

Open
iwyrkore opened this issue Jun 21, 2022 · 0 comments
Open

Set matplotlib MPLCONFIGDIR env var in production #132

iwyrkore opened this issue Jun 21, 2022 · 0 comments

Comments

@iwyrkore
Copy link
Contributor

In production we get:

[WARNING] 2022-06-21T16:16:26.921Z Matplotlib created a temporary config/cache directory at /tmp/matplotlib-gmtk3leg because the default path (/home/sbx_user1051/.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.

We should set MPLCONFIGDIR in production to something in /tmp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant