##// END OF EJS Templates
traceback support added
Omar Andres Zapata Mesa -
Show More
@@ -30,7 +30,6 b' import readline'
30 import rlcompleter
30 import rlcompleter
31 import time
31 import time
32
32
33
34 #-----------------------------------------------------------------------------
33 #-----------------------------------------------------------------------------
35 # Imports from ipython
34 # Imports from ipython
36 #-----------------------------------------------------------------------------
35 #-----------------------------------------------------------------------------
@@ -149,10 +148,12 b' class Frontend(object):'
149 if self.msg_xreq["msg_type"] == "execute_reply" :
148 if self.msg_xreq["msg_type"] == "execute_reply" :
150 self.handle_sub_channel()
149 self.handle_sub_channel()
151 self.prompt_count = self.msg_xreq["content"]["execution_count"]+1
150 self.prompt_count = self.msg_xreq["content"]["execution_count"]+1
152
151
153 else:
152 else:
154 print >> sys.stderr, "Error executing: ",self.msg_xreq ##traceback no implemented yet here
153 etb = self.msg_xreq["content"]["traceback"]
155 print >> sys.stderr, "Status in the kernel: ", self.msg_xreq["content"]["status"]
154 print >> sys.stderr, etb[0]
155 print >> sys.stderr, etb[1]
156 print >> sys.stderr, etb[2]
156 break
157 break
157 time.sleep(0.1)
158 time.sleep(0.1)
158
159
General Comments 0
You need to be logged in to leave comments. Login now