##// END OF EJS Templates
Update error messages.
Bradley M. Froehle -
Show More
@@ -835,7 +835,8 b' class IPKernelApp(KernelApp, InteractiveShellApp):'
835 else:
835 else:
836 shell.enable_gui(self.gui)
836 shell.enable_gui(self.gui)
837 except Exception:
837 except Exception:
838 self.log.error("Pylab initialization failed", exc_info=True)
838 self.log.error("GUI event loop or pylab initialization failed",
839 exc_info=True)
839 # print exception straight to stdout, because normally
840 # print exception straight to stdout, because normally
840 # _showtraceback associates the reply with an execution,
841 # _showtraceback associates the reply with an execution,
841 # which means frontends will never draw it, as this exception
842 # which means frontends will never draw it, as this exception
@@ -844,8 +845,8 b' class IPKernelApp(KernelApp, InteractiveShellApp):'
844 # replace pyerr-sending traceback with stdout
845 # replace pyerr-sending traceback with stdout
845 _showtraceback = shell._showtraceback
846 _showtraceback = shell._showtraceback
846 def print_tb(etype, evalue, stb):
847 def print_tb(etype, evalue, stb):
847 print ("Error initializing pylab, pylab mode will not "
848 print ("GUI event loop or pylab initialization failed",
848 "be active", file=io.stderr)
849 file=io.stderr)
849 print (shell.InteractiveTB.stb2text(stb), file=io.stdout)
850 print (shell.InteractiveTB.stb2text(stb), file=io.stdout)
850 shell._showtraceback = print_tb
851 shell._showtraceback = print_tb
851
852
General Comments 0
You need to be logged in to leave comments. Login now