Backport PR
#2668: pylab_not_importable: Catch all exceptions, not just RuntimeErrors....
Backport PR
#2668: pylab_not_importable: Catch all exceptions, not just RuntimeErrors.
This catches situations when `pylab` isn't installed or fails for another
reason like:
ImportError: No module named backend_tkagg
Closes gh-2646.