Show More
@@ -524,8 +524,11 b' class Application(SingletonConfigurable):' | |||
|
524 | 524 | sys.exit(exit_status) |
|
525 | 525 | |
|
526 | 526 | @classmethod |
|
527 |
def launch_ |
|
|
528 |
"""Launch a global instance of this Application |
|
|
527 | def launch_instance(cls, argv=None, **kwargs): | |
|
528 | """Launch a global instance of this Application | |
|
529 | ||
|
530 | If a global instance already exists, this reinitializes and starts it | |
|
531 | """ | |
|
529 | 532 | app = cls.instance(**kwargs) |
|
530 | 533 | app.initialize(argv) |
|
531 | 534 | app.start() |
@@ -745,5 +745,5 b' class NotebookApp(BaseIPythonApplication):' | |||
|
745 | 745 | # Main entry point |
|
746 | 746 | #----------------------------------------------------------------------------- |
|
747 | 747 | |
|
748 |
launch_new_instance = NotebookApp.launch_ |
|
|
748 | launch_new_instance = NotebookApp.launch_instance | |
|
749 | 749 |
@@ -203,5 +203,5 b' class NbConvertApp(Application):' | |||
|
203 | 203 | # Main entry point |
|
204 | 204 | #----------------------------------------------------------------------------- |
|
205 | 205 | |
|
206 |
launch_new_instance = NbConvertApp.launch_ |
|
|
206 | launch_new_instance = NbConvertApp.launch_instance | |
|
207 | 207 |
@@ -608,7 +608,7 b' class IPClusterApp(BaseIPythonApplication):' | |||
|
608 | 608 | else: |
|
609 | 609 | return self.subapp.start() |
|
610 | 610 | |
|
611 |
launch_new_instance = IPClusterApp.launch_ |
|
|
611 | launch_new_instance = IPClusterApp.launch_instance | |
|
612 | 612 | |
|
613 | 613 | if __name__ == '__main__': |
|
614 | 614 | launch_new_instance() |
@@ -544,7 +544,7 b' def launch_new_instance(*args, **kwargs):' | |||
|
544 | 544 | if p.name != 'MainProcess': |
|
545 | 545 | # we are a subprocess, don't start another Controller! |
|
546 | 546 | return |
|
547 |
return IPControllerApp.launch_ |
|
|
547 | return IPControllerApp.launch_instance(*args, **kwargs) | |
|
548 | 548 | |
|
549 | 549 | |
|
550 | 550 | if __name__ == '__main__': |
@@ -388,7 +388,7 b' class IPEngineApp(BaseParallelApplication):' | |||
|
388 | 388 | self.log.critical("Engine Interrupted, shutting down...\n") |
|
389 | 389 | |
|
390 | 390 | |
|
391 |
launch_new_instance = IPEngineApp.launch_ |
|
|
391 | launch_new_instance = IPEngineApp.launch_instance | |
|
392 | 392 | |
|
393 | 393 | |
|
394 | 394 | if __name__ == '__main__': |
@@ -91,7 +91,7 b' class IPLoggerApp(BaseParallelApplication):' | |||
|
91 | 91 | self.log.critical("Logging Interrupted, shutting down...\n") |
|
92 | 92 | |
|
93 | 93 | |
|
94 |
launch_new_instance = IPLoggerApp.launch_ |
|
|
94 | launch_new_instance = IPLoggerApp.launch_instance | |
|
95 | 95 | |
|
96 | 96 | |
|
97 | 97 | if __name__ == '__main__': |
@@ -141,7 +141,7 b' class ZMQTerminalIPythonApp(TerminalIPythonApp, IPythonConsoleApp):' | |||
|
141 | 141 | pass |
|
142 | 142 | |
|
143 | 143 | |
|
144 |
launch_new_instance = ZMQTerminalIPythonApp.launch_ |
|
|
144 | launch_new_instance = ZMQTerminalIPythonApp.launch_instance | |
|
145 | 145 | |
|
146 | 146 | |
|
147 | 147 | if __name__ == '__main__': |
General Comments 0
You need to be logged in to leave comments.
Login now