{ } Raw JSON

bundles / jupyter_client 8.10.0 / jupyter_client / connect / ConnectionFileMixin / _reconcile_connection_info

function

jupyter_client.connect:ConnectionFileMixin._reconcile_connection_info

source: /jupyter_client/connect.py:609

Signature

def _reconcile_connection_info(self, info: KernelConnectionInfo) → None

Summary

Reconciles the connection information returned from the Provisioner.

Extended Summary

Because some provisioners (like derivations of LocalProvisioner) may have already written the connection file, this method needs to ensure that, if the connection file exists, its contents match that of what was returned by the provisioner. If the file does exist and its contents do not match, the file will be replaced with the provisioner information (which is considered the truth).

If the file does not exist, the connection information in 'info' is loaded into the KernelManager and written to the file.

Aliases

  • jupyter_client.client.ConnectionFileMixin._reconcile_connection_info