Permalink
Browse files

use App.instance() in launch_new_instance (parallel apps)

This way later calls to App.instance() will return the running
application, whereas calling App() would create an isolated
Application object.
  • Loading branch information...
1 parent a6c14a6 commit fbeaaef19dab6e0883b9e5299f5c8bdf6f53abf8 @minrk committed Jun 7, 2011
@@ -511,7 +511,7 @@ def start(self):
def launch_new_instance():
"""Create and run the IPython cluster."""
- app = IPBaseParallelApplication()
+ app = IPBaseParallelApplication.instance()
app.initialize()
app.start()
@@ -389,7 +389,7 @@ def start(self):
def launch_new_instance():
"""Create and run the IPython controller"""
- app = IPControllerApp()
+ app = IPControllerApp.instance()
app.initialize()
app.start()
@@ -260,7 +260,7 @@ def start(self):
def launch_new_instance():
"""Create and run the IPython engine"""
- app = IPEngineApp()
+ app = IPEngineApp.instance()
app.initialize()
app.start()
@@ -86,7 +86,7 @@ def start(self):
def launch_new_instance():
"""Create and run the IPython LogWatcher"""
- app = IPLoggerApp()
+ app = IPLoggerApp.instance()
app.initialize()
app.start()

0 comments on commit fbeaaef

Please sign in to comment.