Skip to content

Commit 0f796ad

Browse files
committed
use load_connection_info(info) when constructing a blocking client
passing connection info to constructor passes Session args (key, scheme) to the client, which trigger warnings for unrecognized arguments
1 parent 8818cd0 commit 0f796ad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

jupyter_client/connect.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,8 @@ def get_connection_info(self, session: bool = False) -> KernelConnectionInfo:
448448
def blocking_client(self):
449449
"""Make a blocking client connected to my kernel"""
450450
info = self.get_connection_info()
451-
info["parent"] = self
452-
bc = self.blocking_class(**info)
453-
bc.session.key = self.session.key
451+
bc = self.blocking_class(parent=self)
452+
bc.load_connection_info(info)
454453
return bc
455454

456455
def cleanup_connection_file(self) -> None:

0 commit comments

Comments
 (0)