jupyter_client.ioloop package#

Submodules#

A kernel manager with a tornado IOLoop

class jupyter_client.ioloop.manager.AsyncIOLoopKernelManager(**kwargs: Any)#

Bases: AsyncKernelManager

connect_control(*args, **kwargs)#

return zmq Socket connected to the Control channel

connect_hb(*args, **kwargs)#

return zmq Socket connected to the Heartbeat channel

connect_iopub(*args, **kwargs)#

return zmq Socket connected to the IOPub channel

connect_shell(*args, **kwargs)#

return zmq Socket connected to the Shell channel

connect_stdin(*args, **kwargs)#

return zmq Socket connected to the StdIn channel

loop#

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

restarter_class#

Type of KernelRestarter to use. Must be a subclass of AsyncIOLoopKernelManager. Override this to customize how kernel restarts are managed.

start_restarter()#
stop_restarter()#
class jupyter_client.ioloop.manager.IOLoopKernelManager(**kwargs: Any)#

Bases: KernelManager

connect_control(*args, **kwargs)#

return zmq Socket connected to the Control channel

connect_hb(*args, **kwargs)#

return zmq Socket connected to the Heartbeat channel

connect_iopub(*args, **kwargs)#

return zmq Socket connected to the IOPub channel

connect_shell(*args, **kwargs)#

return zmq Socket connected to the Shell channel

connect_stdin(*args, **kwargs)#

return zmq Socket connected to the StdIn channel

loop#

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

restarter_class#

Type of KernelRestarter to use. Must be a subclass of IOLoopKernelRestarter. Override this to customize how kernel restarts are managed.

start_restarter()#
stop_restarter()#
jupyter_client.ioloop.manager.as_zmqstream(f)#

A basic in process kernel monitor with autorestarting.

This watches a kernel’s state using KernelManager.is_alive and auto restarts the kernel if it dies.

class jupyter_client.ioloop.restarter.AsyncIOLoopKernelRestarter(**kwargs)#

Bases: IOLoopKernelRestarter

async poll()#
class jupyter_client.ioloop.restarter.IOLoopKernelRestarter(**kwargs)#

Bases: KernelRestarter

Monitor and autorestart a kernel.

loop#

A trait whose value must be an instance of a specified class.

The value can also be an instance of a subclass of the specified class.

Subclasses can declare default classes by overriding the klass attribute

start()#

Start the polling of the kernel.

stop()#

Stop the kernel polling.

Module contents#