bundles / jupyter_client 8.10.0 / jupyter_client / connect / LocalPortCache
MetaHasTraits
jupyter_client.connect:LocalPortCache
source: /jupyter_client/connect.py:736
Signature
def LocalPortCache(**kwargs: Any) → NoneMembers
Summary
Used to keep track of local ports in order to prevent race conditions that can occur between port acquisition and usage by the kernel. All locally- provisioned kernels should use this mechanism to limit the possibility of race conditions. Note that this does not preclude other applications from acquiring a cached but unused port, thereby re-introducing the issue this class is attempting to resolve (minimize). See: https://github.com/jupyter/jupyter_client/issues/487
Aliases
jupyter_client.LocalPortCache