Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use App.instance() in kernel launchers

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 14a4f0287c804b2a4e63d30ef4574288e837e707 1 parent 2eb73ea
@minrk authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  IPython/zmq/ipkernel.py
  2. +1 −1  IPython/zmq/pykernel.py
View
2  IPython/zmq/ipkernel.py
@@ -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()
View
2  IPython/zmq/pykernel.py
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.