Hex
Hex logoHex · Feature trail

Jupyter Kernel Internals

1 post · Sep 2023

What this trail covers

This post details the architecture and communication mechanisms of the Jupyter kernel, explaining its role as the computational engine for notebooks. It covers the decoupling of I/O from computation, the benefits of this model (multiple frontends/backends, isolation, performance), and the communication protocols (WebSockets, ZeroMQ) and sockets (shell, IOPub, stdin, control, heartbeat) used between the frontend and kernel. The post also provides a practical example of building a simple echo kernel to illustrate the underlying principles.

All Hex trails