Skip to content

Commit 375ea01

Browse files
committed
make KernelManager configurable for all who inherit JupyterConsoleApp
1 parent b754994 commit 375ea01

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

jupyter_client/consoleapp.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from traitlets.config.application import boolean_flag
1919
from ipython_genutils.path import filefind
2020
from traitlets import (
21-
Dict, List, Unicode, CUnicode, CBool, Any
21+
Dict, List, Unicode, CUnicode, CBool, Any, Type
2222
)
2323

2424
from jupyter_core.application import base_flags, base_aliases
@@ -110,7 +110,11 @@ class JupyterConsoleApp(ConnectionFileMixin):
110110
classes = classes
111111
flags = Dict(flags)
112112
aliases = Dict(aliases)
113-
kernel_manager_class = KernelManager
113+
kernel_manager_class = Type(
114+
default_value=KernelManager,
115+
config=True,
116+
help='The kernel manager class to use.'
117+
)
114118
kernel_client_class = BlockingKernelClient
115119

116120
kernel_argv = List(Unicode())

0 commit comments

Comments
 (0)