##// END OF EJS Templates
Allow starting TerminalInteractiveShell more than once...
Min RK -
Show More
@@ -415,6 +415,7 b' class TerminalInteractiveShell(InteractiveShell):'
415 if display_banner is not DISPLAY_BANNER_DEPRECATED:
415 if display_banner is not DISPLAY_BANNER_DEPRECATED:
416 warn('interact `display_banner` argument is deprecated since IPython 5.0. Call `show_banner()` if needed.', DeprecationWarning, stacklevel=2)
416 warn('interact `display_banner` argument is deprecated since IPython 5.0. Call `show_banner()` if needed.', DeprecationWarning, stacklevel=2)
417
417
418 self.keep_running = True
418 while self.keep_running:
419 while self.keep_running:
419 print(self.separate_in, end='')
420 print(self.separate_in, end='')
420
421
@@ -440,9 +441,6 b' class TerminalInteractiveShell(InteractiveShell):'
440 break
441 break
441 except KeyboardInterrupt:
442 except KeyboardInterrupt:
442 print("\nKeyboardInterrupt escaped interact()\n")
443 print("\nKeyboardInterrupt escaped interact()\n")
443
444 if hasattr(self, '_eventloop'):
445 self._eventloop.close()
446
444
447 _inputhook = None
445 _inputhook = None
448 def inputhook(self, context):
446 def inputhook(self, context):
General Comments 0
You need to be logged in to leave comments. Login now