Skip to content

Commit 7b5a95c

Browse files
author
Steven Silvester
authored
Merge pull request #688 from minrk/client-accept-session-args
use load_connection_info(info) when constructing a blocking client
2 parents 8818cd0 + 0f796ad commit 7b5a95c

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)