##// END OF EJS Templates
Fix bug where a failure in cell mode would be silenced....
Fernando Perez -
Show More
@@ -2200,9 +2200,10 b' class InteractiveShell(Configurable, Magic):'
2200 body = ''.join(blocks[:-1])
2200 body = ''.join(blocks[:-1])
2201 self.input_hist.append(body)
2201 self.input_hist.append(body)
2202 self.input_hist_raw.append(body)
2202 self.input_hist_raw.append(body)
2203 self.runcode(body, post_execute=False)
2203 retcode = self.runcode(body, post_execute=False)
2204 # And the last expression via runlines so it produces output
2204 if retcode==0:
2205 self.runlines(last)
2205 # And the last expression via runlines so it produces output
2206 self.runlines(last)
2206 else:
2207 else:
2207 # Run the whole cell as one entity
2208 # Run the whole cell as one entity
2208 self.input_hist.append(cell)
2209 self.input_hist.append(cell)
General Comments 0
You need to be logged in to leave comments. Login now