From f515995997deefeddceb59587d4b0e336653f7e0 Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Thu, 6 Nov 2025 16:01:50 -0800 Subject: [PATCH] allow configuring client_class and client_factory --- jupyter_client/manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jupyter_client/manager.py b/jupyter_client/manager.py index 58ef0d0d..a668bc06 100644 --- a/jupyter_client/manager.py +++ b/jupyter_client/manager.py @@ -136,9 +136,9 @@ def _context_default(self) -> zmq.Context: # the class to create with our `client` method client_class: DottedObjectName = DottedObjectName( - "jupyter_client.blocking.BlockingKernelClient" + "jupyter_client.blocking.BlockingKernelClient", config=True ) - client_factory: Type = Type(klass=KernelClient) + client_factory: Type = Type(klass=KernelClient, config=True) @default("client_factory") def _client_factory_default(self) -> Type: @@ -716,9 +716,9 @@ class AsyncKernelManager(KernelManager): # the class to create with our `client` method client_class: DottedObjectName = DottedObjectName( - "jupyter_client.asynchronous.AsyncKernelClient" + "jupyter_client.asynchronous.AsyncKernelClient", config=True ) - client_factory: Type = Type(klass="jupyter_client.asynchronous.AsyncKernelClient") + client_factory: Type = Type(klass="jupyter_client.asynchronous.AsyncKernelClient", config=True) # The PyZMQ Context to use for communication with the kernel. context: Instance = Instance(zmq.asyncio.Context)