##// END OF EJS Templates
Make InProcessKernelManager a Configurable.
Brian Granger -
Show More
@@ -12,9 +12,9 b''
12 #-----------------------------------------------------------------------------
12 #-----------------------------------------------------------------------------
13
13
14 # Local imports.
14 # Local imports.
15 from IPython.config.loader import Config
15 from IPython.config.configurable import Configurable
16 from IPython.inprocess.socket import DummySocket
16 from IPython.inprocess.socket import DummySocket
17 from IPython.utils.traitlets import HasTraits, Any, Instance, Type
17 from IPython.utils.traitlets import Any, Instance, Type
18 from IPython.zmq.kernelmanagerabc import (
18 from IPython.zmq.kernelmanagerabc import (
19 ShellChannelABC, IOPubChannelABC,
19 ShellChannelABC, IOPubChannelABC,
20 HBChannelABC, StdInChannelABC,
20 HBChannelABC, StdInChannelABC,
@@ -295,15 +295,13 b' class InProcessHBChannel(InProcessChannel):'
295 # Main kernel manager class
295 # Main kernel manager class
296 #-----------------------------------------------------------------------------
296 #-----------------------------------------------------------------------------
297
297
298 class InProcessKernelManager(HasTraits):
298 class InProcessKernelManager(Configurable):
299 """ A manager for an in-process kernel.
299 """ A manager for an in-process kernel.
300
300
301 This class implements most of the interface of
301 This class implements most of the interface of
302 ``IPython.zmq.kernelmanager.KernelManager`` and allows (asynchronous)
302 ``IPython.zmq.kernelmanager.KernelManager`` and allows (asynchronous)
303 frontends to be used seamlessly with an in-process kernel.
303 frontends to be used seamlessly with an in-process kernel.
304 """
304 """
305 # Config object for passing to child configurables
306 config = Instance(Config)
307
305
308 # The Session to use for building messages.
306 # The Session to use for building messages.
309 session = Instance('IPython.zmq.session.Session')
307 session = Instance('IPython.zmq.session.Session')
General Comments 0
You need to be logged in to leave comments. Login now