sympy/sympy — pull request #993 by asmeurer (2012-01-17 21:14:18+00:00)
Title: Nodisplay

This fixes issue [3011](http://code.google.com/p/sympy/issues/detail?id=3011). The import of matplotlib raises RuntimeError in environments that don't have any kind of display (like ssh). The solution is to add an option to `import_module` to catch errors other than ImportError and use it.