{ } Raw JSON

bundles / jupyter_client 8.10.0 / jupyter_client / client / KernelClient / _async_wait_for_ready

function

jupyter_client.client:KernelClient._async_wait_for_ready

source: /jupyter_client/client.py:161

Signature

async def _async_wait_for_ready(self, timeout: float | None = None) → None

Summary

Waits for a response when a client is blocked

Extended Summary

  • Sets future time for timeout

  • Blocks on shell channel until a message is received

  • Exit if the kernel has died

  • If client times out before receiving a message from the kernel, send RuntimeError

  • Flush the IOPub channel

Aliases

  • jupyter_client.AsyncKernelClient.wait_for_ready