{ } Raw JSON

bundles / jupyter_client 8.10.0 / jupyter_client / manager / KernelManager / update_env

function

jupyter_client.manager:KernelManager.update_env

source: /jupyter_client/manager.py:364

Signature

def update_env(self, *, env: t.Dict[str, str]) → None

Summary

Allow to update the environment of a kernel manager.

Extended Summary

This will take effect only after kernel restart when the new env is passed to the new kernel.

This is useful as some of the information of the current kernel reflect the state of the session that started it, and those session information (like the attach file path, or name), are mutable.

Aliases

  • jupyter_client.KernelManager.update_env