{ } Raw JSON

bundles / jupyter_client latest / jupyter_client / session / Session / recv

function

jupyter_client.session:Session.recv

source: /jupyter_client/session.py:917

Signature

def recv(self, socket: zmq.sugar.socket.Socket, mode: int = 1, content: bool = True, copy: bool = True) → tuple[list[bytes] | None, dict[str, t.Any] | None]

Summary

Receive and unpack a message.

Parameters

socket : ZMQStream or Socket

The socket or stream to use in receiving.

Returns

: [idents], msg

[idents] is a list of idents and msg is a nested message dict of same format as self.msg returns.

Aliases

  • jupyter_client.channels.Session.recv