package jupyter-kernel

  1. Overview
  2. Docs

Source file Protocol_t.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
(* Auto-generated from "Protocol.atd" *)
[@@@ocaml.warning "-27-32-33-35-39"]

type stream = { st_name: string; st_data: string }

type status = { execution_state: string }

type shutdown = { restart: bool }

type dyn = Yojson.Safe.t

type pyout = { po_execution_count: int; po_data: dyn; po_metadata: dyn }

type pyin = { pi_code: string; pi_execution_count: int }

type payload = {
  html: string;
  source: string;
  start_line_number: int;
  text: string
}

type language_info = {
  li_name: string;
  li_version: string;
  li_mimetype: string;
  li_file_extension: string;
  li_codemirror_mode: string option
}

type help_link = { help_text: string; help_url: string }

type kernel_info_reply = {
  protocol_version: string;
  implementation: string;
  implementation_version: string;
  language_info: language_info;
  banner: string;
  help_links: help_link list
}

type is_complete_request = { icr_code: string }

type is_complete_reply = { icr_status: string; icr_indent: string }

type inspect_request = {
  ir_code: string;
  ir_cursor_pos: int;
  ir_detail_level: int
}

type inspect_reply = {
  ir_status: string;
  ir_found: bool option;
  ir_data: dyn option;
  ir_metadata: dyn option;
  ir_ename: string option;
  ir_evalue: string option;
  ir_traceback: string list option
}

type history_request = {
  output: bool;
  raw: bool;
  hist_access_type: string;
  hr_session: int;
  start: int;
  stop: int;
  n: int;
  pattern: string;
  unique: bool
}

type history_reply = { history: string list }

type header_info = {
  date: string;
  version: string;
  username: string option;
  session: string option;
  msg_id: string;
  msg_type: string
}

type execute_request = {
  code: string;
  silent: bool;
  store_history: bool;
  user_expressions: dyn;
  allow_stdin: bool
}

type execute_reply = {
  status: string;
  execution_count: int;
  ename: string option;
  evalue: string option;
  traceback: string list option;
  payload: payload list option;
  er_user_expressions: dyn option
}

type execute_error = {
  err_ename: string;
  err_evalue: string;
  err_traceback: string list
}

type display_data = {
  dd_data: dyn;
  dd_metadata: dyn;
  dd_transient: dyn option
}

type connection_info = {
  stdin_port: int;
  ip: string;
  control_port: int;
  hb_port: int;
  signature_scheme: string;
  key: string;
  shell_port: int;
  transport: string;
  iopub_port: int
}

type connect_reply = {
  cr_shell_port: int;
  cr_iopub_port: int;
  cr_stdin_port: int;
  cr_hb_port: int
}

type complete_request = { line: string; cursor_pos: int }

type complete_reply = {
  matches: string list;
  cursor_start: int;
  cursor_end: int;
  cr_status: string
}

type comm_info_request = { target_name: string }

type clear_output = { wait: bool; stdout: bool; stderr: bool; other: bool }
OCaml

Innovation. Community. Security.