Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit fbeaaef19dab6e0883b9e5299f5c8bdf6f53abf8 1 parent a6c14a6
@minrk authored
View
2  IPython/parallel/apps/ipclusterapp.py
@@ -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()
View
2  IPython/parallel/apps/ipcontrollerapp.py
@@ -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()
View
2  IPython/parallel/apps/ipengineapp.py
@@ -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()
View
2  IPython/parallel/apps/iploggerapp.py
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.