Skip to content

Commit 7b4340d

Browse files
authored
allow configuring client_class and client_factory (#1081)
1 parent ba64df2 commit 7b4340d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jupyter_client/manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ def _context_default(self) -> zmq.Context:
136136

137137
# the class to create with our `client` method
138138
client_class: DottedObjectName = DottedObjectName(
139-
"jupyter_client.blocking.BlockingKernelClient"
139+
"jupyter_client.blocking.BlockingKernelClient", config=True
140140
)
141-
client_factory: Type = Type(klass=KernelClient)
141+
client_factory: Type = Type(klass=KernelClient, config=True)
142142

143143
@default("client_factory")
144144
def _client_factory_default(self) -> Type:
@@ -716,9 +716,9 @@ class AsyncKernelManager(KernelManager):
716716

717717
# the class to create with our `client` method
718718
client_class: DottedObjectName = DottedObjectName(
719-
"jupyter_client.asynchronous.AsyncKernelClient"
719+
"jupyter_client.asynchronous.AsyncKernelClient", config=True
720720
)
721-
client_factory: Type = Type(klass="jupyter_client.asynchronous.AsyncKernelClient")
721+
client_factory: Type = Type(klass="jupyter_client.asynchronous.AsyncKernelClient", config=True)
722722

723723
# The PyZMQ Context to use for communication with the kernel.
724724
context: Instance = Instance(zmq.asyncio.Context)

0 commit comments

Comments
 (0)