package jupyter

  1. Overview
  2. Docs

Contents on IOPUB channels

Streams

type stream_name =
  1. | IOPUB_STDOUT
  2. | IOPUB_STDERR
val stream_name_to_yojson : stream_name -> Yojson.Safe.t
type stream = {
  1. stream_name : stream_name Json.enum;
  2. stream_text : string;
}
val stream_to_yojson : stream -> Yojson.Safe.t

Display data

type transient = {
  1. display_id : string;
}
val transient_to_yojson : transient -> Yojson.Safe.t
type display_data = {
  1. display_data : Yojson.Safe.t;
  2. display_metadata : Yojson.Safe.t;
  3. display_transient : transient option;
}
val display_data_to_yojson : display_data -> Yojson.Safe.t

Code inputs

type exec_input = {
  1. exin_code : string;
  2. exin_count : int;
}
val exec_input_to_yojson : exec_input -> Yojson.Safe.t

Execution results

type exec_result = {
  1. exres_count : int;
  2. exres_data : Yojson.Safe.t;
  3. exres_metadata : Yojson.Safe.t;
}
val exec_result_to_yojson : exec_result -> Yojson.Safe.t

Kernel status

type exec_status =
  1. | IOPUB_BUSY
  2. | IOPUB_IDLE
  3. | IOPUB_STARTING
val exec_status_to_yojson : exec_status -> Yojson.Safe.t
type status = {
  1. kernel_state : exec_status Json.enum;
}
val status_to_yojson : status -> Yojson.Safe.t

Execution errors

type error = {
  1. ename : string;
  2. evalue : string;
  3. traceback : string list;
}
val error_to_yojson : error -> Yojson.Safe.t

Clear output

type clear_output = {
  1. clear_wait : bool;
}
val clear_output_to_yojson : clear_output -> Yojson.Safe.t

IOPUB Request

type request = unit
val request_to_yojson : request -> Yojson.Safe.t

IOPUB Reply

type 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
val reply_to_yojson : reply -> Yojson.Safe.t
val stream : name:stream_name Json.enum -> string -> reply
val execute_result : ?metadata:Yojson.Safe.t -> count:int -> Yojson.Safe.t -> reply
val error : ?name:string -> value:string -> string list -> reply