<div dir="ltr">I think setting the MPLCONFIGDIR environment variable to a user-writable directory should be good enough.  There's an open PR (<a href="https://github.com/matplotlib/matplotlib/pull/15933">https://github.com/matplotlib/matplotlib/pull/15933</a>) which adds a warning in the case where that's needed.<div>Antony</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 16, 2020 at 4:41 AM Kevin Buckley <<a href="mailto:kevin.buckley.pawsey.org.au@gmail.com">kevin.buckley.pawsey.org.au@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We've recently seen an issue where someone running multiple instances<br>
of jobs on our supercomputer, all of which have a matplotlib component<br>
that thus runs on the compute nodes, rather than as part of any<br>
post-processing on our anciliary services.<br>
<br>
Some of these jobs ended up hanging and, in a number of cases, we have<br>
observed that the hanging process is what we belive to be the matplotlib-<br>
spawned<br>
<br>
   fc-list --format=%{file}\n<br>
<br>
Is there anything, in the way that matplotlib is written, that might<br>
see race conditions, around access to the per-user font cache, or<br>
other matplotlib data, being created?<br>
<br>
Furthermore, is there a way that our users could define a per-job font<br>
cache directory, by using the job-ID, and thereby explcitly avoiding<br>
any inter-job interference resulting from their "massively parallel"<br>
matplotlib invocations?<br>
<br>
Here's hoping that matplotlib is the cause, and, if so, that there's an<br>
easy solution, when you know how to use matplotlib.<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>