Import Matplotlib only if necessary

12 jobs for import_matplotlib in 13 minutes and 26 seconds (queued for 3 seconds)