{ } Raw JSON

bundles / jupyter_client 8.10.0 / jupyter_client / client / KernelClient

MetaHasTraits

jupyter_client.client:KernelClient

source: /jupyter_client/client.py:77

Signature

def KernelClient(**kwargs: t.Any) → None

Members

Summary

Communicates with a single kernel on any host via zmq channels.

Extended Summary

There are five channels associated with each kernel:

  • shell: for request/reply calls to the kernel.

  • iopub: for the kernel to publish results to frontends.

  • hb: for monitoring the kernel's heartbeat.

  • stdin: for frontends to reply to raw_input calls in the kernel.

  • control: for kernel management calls to the kernel.

The messages that can be sent on these channels are exposed as methods of the client (KernelClient.execute, complete, history, etc.). These methods only send the message, they don't wait for a reply. To get results, use e.g. get_shell_msg to fetch messages from the shell channel.

Aliases

  • jupyter_client.KernelClient

Referenced by