Show More
@@ -2864,6 +2864,10 b' class InteractiveShell(SingletonConfigurable):' | |||
|
2864 | 2864 | except KeyError: |
|
2865 | 2865 | error("Backend %r not supported" % gui) |
|
2866 | 2866 | return |
|
2867 | except ImportError: | |
|
2868 | error("pylab mode doesn't work as matplotlib could not be found." + \ | |
|
2869 | "\nIs it installed on the system?") | |
|
2870 | return | |
|
2867 | 2871 | self.user_ns.update(ns) |
|
2868 | 2872 | self.user_ns_hidden.update(ns) |
|
2869 | 2873 | # Now we must activate the gui pylab wants to use, and fix %run to take |
@@ -203,6 +203,10 b' class InteractiveShellApp(Configurable):' | |||
|
203 | 203 | self.log.info("Enabling GUI event loop integration, " |
|
204 | 204 | "toolkit=%s" % self.gui) |
|
205 | 205 | shell.enable_gui(self.gui) |
|
206 | except ImportError: | |
|
207 | self.log.warn("pylab mode doesn't work as matplotlib could not be found." + \ | |
|
208 | "\nIs it installed on the system?") | |
|
209 | self.shell.showtraceback() | |
|
206 | 210 | except Exception: |
|
207 | 211 | self.log.warn("GUI event loop or pylab initialization failed") |
|
208 | 212 | self.shell.showtraceback() |
General Comments 0
You need to be logged in to leave comments.
Login now