You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lazy import matplotlib.pyplot to prevent lockfile errors (#1653)
Summary:
Pull Request resolved: #1653
Lazy import matplotlib to avoid lockfile issues with some of the font files when importing captum library in multithreaded environments eg:
```
[2025-10-01T04:02:13.219-07:00] TimeoutError: Lock error: Matplotlib failed to acquire the following lock file:
[2025-10-01T04:02:13.219-07:00] /var/twsvcscm/.cache/matplotlib/fontlist-v330.json.matplotlib-lock
[2025-10-01T04:02:13.219-07:00] This maybe due to another process holding this lock file. If you are sure no
[2025-10-01T04:02:13.219-07:00] other Matplotlib process is running, remove this file and try again.
```
Reviewed By: craymichael
Differential Revision: D83707766
fbshipit-source-id: 8a5b9a537946f5856c3cb8c9a2891b9a57daf0a5
0 commit comments