Private_Private_Private_Private_Private_PrivatecreateCreate a kernel connection file with random ports.
Dispose of the kernel client and clean up resources.
Execute code on the kernel.
PrivatefindFind a free port by letting the OS assign one.
Get the underlying kernel connection.
Get kernel information.
Interrupt the kernel.
Restart the kernel.
PrivatespawnSpawn the ipykernel process and create ZMQ connection.
Start the local kernel by spawning ipykernel and connecting via ZMQ.
Client for local Python kernels using direct ZMQ communication. Works with environments that only have ipykernel installed (no jupyter-server needed).