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