{ } Raw JSON

bundles / jupyter_client 8.10.0 / jupyter_client / session / Session / msg

function

jupyter_client.session:Session.msg

source: /jupyter_client/session.py:655

Signature

def msg(self, msg_type: str, content: dict | None = None, parent: dict[str, t.Any] | None = None, header: dict[str, t.Any] | None = None, metadata: dict[str, t.Any] | None = None) → dict[str, t.Any]

Summary

Return the nested message dict.

Extended Summary

This format is different from what is sent over the wire. The serialize/deserialize methods converts this nested message dict to the wire format, which is a list of message parts.

Aliases

  • jupyter_client.channels.Session.msg