bundles / jupyter_client latest / jupyter_client / provisioning / provisioner_base / KernelProvisionerBase / pre_launch
function
jupyter_client.provisioning.provisioner_base:KernelProvisionerBase.pre_launch
source: /jupyter_client/provisioning/provisioner_base.py:138
Signature
async def pre_launch(self, **kwargs: Any) → dict[str, Any]Summary
Perform any steps in preparation for kernel process launch.
Extended Summary
This includes applying additional substitutions to the kernel launch command and environment. It also includes preparation of launch parameters.
NOTE: Subclass implementations are advised to call this method as it applies environment variable substitutions from the local environment and calls the provisioner's _finalize_env() method to allow each provisioner the ability to cleanup the environment variables that will be used by the kernel.
This method is called from KernelManager.pre_start_kernel() as part of its start kernel sequence.
Returns the (potentially updated) keyword arguments that are passed to launch_kernel().
Aliases
jupyter_client.KernelProvisionerBase.pre_launch