bundles / jupyter_client latest / jupyter_client / provisioning / factory / KernelProvisionerFactory / _get_provisioner_config
function
jupyter_client.provisioning.factory:KernelProvisionerFactory._get_provisioner_config
Signature
def _get_provisioner_config(self, kernel_spec: Any) → dict[str, Any]Summary
Return the kernel_provisioner stanza from the kernel_spec.
Extended Summary
Checks the kernel_spec's metadata dictionary for a kernel_provisioner entry. If found, it is returned, else one is created relative to the DEFAULT_PROVISIONER and returned.
Parameters
kernel_spec: Any - this is a KernelSpec type but listed as Any to avoid circular importThe kernel specification object from which the provisioner dictionary is derived.
Returns
: dictThe provisioner portion of the kernel_spec. If one does not exist, it will contain the default information. If no
configsub-dictionary exists, an emptyconfigdictionary will be added.
Aliases
jupyter_client.provisioning.KernelProvisionerFactory._get_provisioner_config