Skip to content

Commit

Permalink
use App.instance() in kernel launchers
Browse files Browse the repository at this point in the history
This way later calls to App.instance() will return the running
application, whereas calling App() would create an isolated
Application object.
  • Loading branch information
minrk committed Jun 10, 2011
1 parent 2eb73ea commit 14a4f02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IPython/zmq/ipkernel.py
Expand Up @@ -664,7 +664,7 @@ def launch_kernel(*args, **kwargs):

def main():
"""Run an IPKernel as an application"""
app = IPKernelApp()
app = IPKernelApp.instance()
app.initialize()
app.start()

Expand Down
2 changes: 1 addition & 1 deletion IPython/zmq/pykernel.py
Expand Up @@ -258,7 +258,7 @@ def launch_kernel(*args, **kwargs):

def main():
"""Run a PyKernel as an application"""
app = KernelApp()
app = KernelApp.instance()
app.initialize()
app.start()

Expand Down

0 comments on commit 14a4f02

Please sign in to comment.