Jupyter.MessageMessaging in Jupyter
type header = {msg_id : string;typically UUID, must be unique per message
*)msg_type : string;the kind of message
*)session : string;typically UUID, should be unique per session
*)date : string option;ISO8601 timestamp for when the message is created
*)username : string;the current username
*)version : string;the message protocol version
*)}val header_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> headerval yojson_of_header : header -> Ppx_yojson_conv_lib.Yojson.Safe.tval header_of_string : string -> headerval header_option_of_string : string -> header Json.option_tryval string_of_header : header -> stringval string_of_header_option : header option -> stringtype 'content t = {zmq_ids : string list;content : 'content;The actual content of the message must be a dict, whose structure depends on the message type.
*)header : header;The message header contains a pair of unique identifiers for the originating session and the actual message id, in addition to the username for the process that generated the message. This is useful in collaborative settings where multiple users may be interacting with the same kernel simultaneously, so that frontends can label the various messages in a meaningful way.
*)parent_header : header option;In a chain of messages, the header from the parent is copied so that clients can track where messages come from.
*)metadata : string;Any metadata associated with the message.
*)buffers : string list;optional: buffers is a list of binary data buffers for implementations that support binary extensions to the protocol.
*)}val t_of_yojson :
'content. (Ppx_yojson_conv_lib.Yojson.Safe.t -> 'content) ->
Ppx_yojson_conv_lib.Yojson.Safe.t ->
'content tval yojson_of_t :
'content. ('content -> Ppx_yojson_conv_lib.Yojson.Safe.t) ->
'content t ->
Ppx_yojson_conv_lib.Yojson.Safe.tval create_next_shell : ?time:float -> 'a t -> Shell.reply -> Shell.reply tval create_next_iopub : ?time:float -> 'a t -> Iopub.reply -> Iopub.reply tval create_next_stdin : ?time:float -> 'a t -> Stdin.reply -> Stdin.reply tval request_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> requestval yojson_of_request : request -> Ppx_yojson_conv_lib.Yojson.Safe.tval reply_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> replyval yojson_of_reply : reply -> Ppx_yojson_conv_lib.Yojson.Safe.t