Show More
@@ -2864,6 +2864,10 b' class InteractiveShell(SingletonConfigurable):' | |||||
2864 | except KeyError: |
|
2864 | except KeyError: | |
2865 | error("Backend %r not supported" % gui) |
|
2865 | error("Backend %r not supported" % gui) | |
2866 | return |
|
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 | self.user_ns.update(ns) |
|
2871 | self.user_ns.update(ns) | |
2868 | self.user_ns_hidden.update(ns) |
|
2872 | self.user_ns_hidden.update(ns) | |
2869 | # Now we must activate the gui pylab wants to use, and fix %run to take |
|
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 | self.log.info("Enabling GUI event loop integration, " |
|
203 | self.log.info("Enabling GUI event loop integration, " | |
204 | "toolkit=%s" % self.gui) |
|
204 | "toolkit=%s" % self.gui) | |
205 | shell.enable_gui(self.gui) |
|
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 | except Exception: |
|
210 | except Exception: | |
207 | self.log.warn("GUI event loop or pylab initialization failed") |
|
211 | self.log.warn("GUI event loop or pylab initialization failed") | |
208 | self.shell.showtraceback() |
|
212 | self.shell.showtraceback() |
General Comments 0
You need to be logged in to leave comments.
Login now