{ } Raw JSON

bundles / jupyter_client latest / jupyter_client / provisioning / factory / KernelProvisionerFactory / _get_provisioner_config

function

jupyter_client.provisioning.factory:KernelProvisionerFactory._get_provisioner_config

source: /jupyter_client/provisioning/factory.py:122

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 import

The kernel specification object from which the provisioner dictionary is derived.

Returns

: dict

The provisioner portion of the kernel_spec. If one does not exist, it will contain the default information. If no config sub-dictionary exists, an empty config dictionary will be added.

Aliases

  • jupyter_client.provisioning.KernelProvisionerFactory._get_provisioner_config