Show More
@@ -546,6 +546,14 b' class FrontendWidget(HistoryConsoleWidget, BaseFrontendMixin):' | |||||
546 | """ Process a reply for an execution request that resulted in an error. |
|
546 | """ Process a reply for an execution request that resulted in an error. | |
547 | """ |
|
547 | """ | |
548 | content = msg['content'] |
|
548 | content = msg['content'] | |
|
549 | # If a SystemExit is passed along, this means exit() was called - also | |||
|
550 | # all the ipython %exit magic syntax of '-k' to be used to keep | |||
|
551 | # the kernel running | |||
|
552 | if content['ename']=='SystemExit': | |||
|
553 | keepkernel = content['evalue']=='-k' or content['evalue']=='True' | |||
|
554 | self._keep_kernel_on_exit = keepkernel | |||
|
555 | self.exit_requested.emit() | |||
|
556 | else: | |||
549 | traceback = ''.join(content['traceback']) |
|
557 | traceback = ''.join(content['traceback']) | |
550 | self._append_plain_text(traceback) |
|
558 | self._append_plain_text(traceback) | |
551 |
|
559 |
General Comments 0
You need to be logged in to leave comments.
Login now