IPython Documentation

Table Of Contents

Previous topic

Module: kernel.adapter

Next topic

Module: kernel.blocking.client

This Page

Module: kernel.blocking.channels

Blocking channels

Useful for test suites and blocking terminal interfaces.

1 Class

class IPython.kernel.blocking.channels.ZMQSocketChannel(socket, session, loop=None)

Bases: object

A ZMQ socket in a simple blocking API

__init__(socket, session, loop=None)

Create a channel.


socket : zmq.Socket

The ZMQ socket to use.

session : session.Session

The session to use.


Unused here, for other implementations

get_msg(block=True, timeout=None)

Gets a message if there is one that is ready.


Get all messages that are currently ready.


Is there a message that has been received?


Pass a message to the ZMQ socket to send