envisage.plugins.ipython_kernel.heartbeat module

A simple ping-pong style heartbeat that runs in a thread.

Modified from upstream to enable the heartbeat thread to be shut down cleanly.

class envisage.plugins.ipython_kernel.heartbeat.Heartbeat(context, addr=None)[source]

Bases: ipykernel.heartbeat.Heartbeat

A simple ping-pong style heartbeat that runs in a thread.

Modified from upstream to enable the thread to be shut down cleanly.

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.