{ } Raw JSON

bundles / ipykernel latest / ipykernel / utils / _async_in_context

function

ipykernel.utils:_async_in_context

source: /ipykernel/utils.py:43

Signature

def _async_in_context(f: Callable[..., t.Coroutine[T, U, V]], context: Context | None = None) → Callable[..., t.Coroutine[T, U, V]]

Summary

Wrapper to run a coroutine in a persistent ContextVar Context.

Aliases

  • ipykernel.kernelbase._async_in_context