package jupyter

  1. Overview
  2. Docs

Module Jupyter.IopubSource

Contents on IOPUB channels

Streams

Sourcetype stream_name =
  1. | IOPUB_STDOUT
  2. | IOPUB_STDERR
Sourceval stream_name_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> stream_name
Sourceval yojson_of_stream_name : stream_name -> Ppx_yojson_conv_lib.Yojson.Safe.t
Sourcetype stream = {
  1. stream_name : stream_name Json.enum;
  2. stream_text : string;
}
Sourceval stream_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> stream
Sourceval yojson_of_stream : stream -> Ppx_yojson_conv_lib.Yojson.Safe.t

Display data

Sourcetype transient = {
  1. display_id : string;
}
Sourceval transient_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> transient
Sourceval yojson_of_transient : transient -> Ppx_yojson_conv_lib.Yojson.Safe.t
Sourcetype display_data = {
  1. display_data : Json.t;
  2. display_metadata : Json.t;
  3. display_transient : transient option;
}
Sourceval display_data_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> display_data
Sourceval yojson_of_display_data : display_data -> Ppx_yojson_conv_lib.Yojson.Safe.t

Code inputs

Sourcetype exec_input = {
  1. exin_code : string;
  2. exin_count : int;
}
Sourceval exec_input_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> exec_input
Sourceval yojson_of_exec_input : exec_input -> Ppx_yojson_conv_lib.Yojson.Safe.t

Execution results

Sourcetype exec_result = {
  1. exres_count : int;
  2. exres_data : Json.t;
  3. exres_metadata : Json.t;
}
Sourceval exec_result_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> exec_result
Sourceval yojson_of_exec_result : exec_result -> Ppx_yojson_conv_lib.Yojson.Safe.t

Kernel status

Sourcetype exec_status =
  1. | IOPUB_BUSY
  2. | IOPUB_IDLE
  3. | IOPUB_STARTING
Sourceval exec_status_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> exec_status
Sourceval yojson_of_exec_status : exec_status -> Ppx_yojson_conv_lib.Yojson.Safe.t
Sourcetype status = {
  1. kernel_state : exec_status Json.enum;
}
Sourceval status_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> status
Sourceval yojson_of_status : status -> Ppx_yojson_conv_lib.Yojson.Safe.t

Execution errors

Sourcetype error = {
  1. ename : string;
  2. evalue : string;
  3. traceback : string list;
}
Sourceval error_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> error
Sourceval yojson_of_error : error -> Ppx_yojson_conv_lib.Yojson.Safe.t

Clear output

Sourcetype clear_output = {
  1. clear_wait : bool;
}
Sourceval clear_output_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> clear_output
Sourceval yojson_of_clear_output : clear_output -> Ppx_yojson_conv_lib.Yojson.Safe.t

IOPUB Request

Sourcetype request = unit
Sourceval request_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> request
Sourceval yojson_of_request : request -> Ppx_yojson_conv_lib.Yojson.Safe.t

IOPUB Reply

Sourcetype reply =
  1. | IOPUB_STREAM of stream
  2. | IOPUB_DISPLAY_DATA of display_data
  3. | IOPUB_UPDATE_DISPLAY_DATA of display_data
  4. | IOPUB_EXECUTE_INPUT of exec_input
  5. | IOPUB_EXECUTE_RESULT of exec_result
  6. | IOPUB_ERROR of error
  7. | IOPUB_STATUS of status
  8. | IOPUB_CLEAR_OUTPUT of clear_output
  9. | IOPUB_COMM_OPEN of Comm.t
  10. | IOPUB_COMM_MSG of Comm.t
  11. | IOPUB_COMM_CLOSE of Comm.t
Sourceval reply_of_yojson : Ppx_yojson_conv_lib.Yojson.Safe.t -> reply
Sourceval yojson_of_reply : reply -> Ppx_yojson_conv_lib.Yojson.Safe.t
Sourceval stream : name:stream_name Json.enum -> string -> reply
Sourceval execute_result : ?metadata:Json.t -> count:int -> Json.t -> reply
Sourceval error : ?name:string -> value:string -> string list -> reply