##// END OF EJS Templates
Update raw cell format property description
Jessica B. Hamrick -
Show More
@@ -1,323 +1,323 b''
1 1 {
2 2 "$schema": "http://json-schema.org/draft-03/schema#",
3 3 "description": "IPython Notebook v4.0 JSON schema.",
4 4 "type": "object",
5 5 "additionalProperties": false,
6 6 "properties": {
7 7 "metadata": {
8 8 "description": "Notebook root-level metadata.",
9 9 "type": "object",
10 10 "required": true,
11 11 "additionalProperties": true,
12 12 "properties": {
13 13 "language": {
14 14 "description": "Language of the notebook's kernel.",
15 15 "type": "string",
16 16 "required": true
17 17 },
18 18 "kernel_info": {
19 19 "description": "Other kernel information, to be determined.",
20 20 "type": "object",
21 21 "required": true,
22 22 "additionalProperties": true
23 23 },
24 24 "signature": {
25 25 "description": "Hash of the notebook.",
26 26 "type": "string",
27 27 "required": false
28 28 }
29 29 }
30 30 },
31 31 "nbformat_minor": {
32 32 "description": "Notebook format (minor number). Incremented for slight changes to the notebook format.",
33 33 "type": "integer",
34 34 "required": true,
35 35 "minimum": 0
36 36 },
37 37 "nbformat": {
38 38 "description": "Notebook format (major number). Incremented between backwards incompatible changes to the notebook format.",
39 39 "type": "integer",
40 40 "required": true,
41 41 "minimum": 4
42 42 },
43 43 "orig_nbformat": {
44 44 "description": "Original notebook format (major number) before converting the notebook between versions.",
45 45 "type": "integer",
46 46 "required": false,
47 47 "minimum": 1
48 48 },
49 49 "cells": {
50 50 "description": "Array of cells of the current notebook.",
51 51 "type": "array",
52 52 "required": true,
53 53 "items": {
54 54 "type": [
55 55 {"$ref": "/definitions/raw_cell"},
56 56 {"$ref": "/definitions/markdown_cell"},
57 57 {"$ref": "/definitions/heading_cell"},
58 58 {"$ref": "/definitions/code_cell"}
59 59 ]
60 60 }
61 61 }
62 62 },
63 63
64 64 "definitions": {
65 65
66 66 "raw_cell": {
67 67 "description": "Notebook raw nbconvert cell.",
68 68 "type": "object",
69 69 "additionalProperties": false,
70 70 "properties": {
71 71 "cell_type": {
72 72 "description": "String identifying the type of cell.",
73 73 "enum": ["raw"],
74 74 "required": true
75 75 },
76 76 "metadata": {
77 77 "description": "Cell-level metadata.",
78 78 "type": "object",
79 79 "required": true,
80 80 "additionalProperties": true,
81 81 "properties": {
82 82 "format": {
83 "description": "Raw cell format, to be determined.",
83 "description": "Raw cell metadata format for nbconvert.",
84 84 "type": "string",
85 85 "required": false
86 86 }
87 87 }
88 88 },
89 89 "source": {
90 90 "description": "Contents of the cell, represented as an array of lines.",
91 91 "type": "array",
92 92 "required": true,
93 93 "items": {"type": "string"}
94 94 }
95 95 }
96 96 },
97 97
98 98 "markdown_cell": {
99 99 "description": "Notebook markdown cell.",
100 100 "type": "object",
101 101 "additionalProperties": false,
102 102 "properties": {
103 103 "cell_type": {
104 104 "description": "String identifying the type of cell.",
105 105 "enum": ["markdown"],
106 106 "required": true
107 107 },
108 108 "metadata": {
109 109 "description": "Cell-level metadata.",
110 110 "type": "object",
111 111 "required": true,
112 112 "additionalProperties": true
113 113 },
114 114 "source": {
115 115 "description": "Contents of the cell, represented as an array of lines.",
116 116 "type": "array",
117 117 "required": true,
118 118 "items": {"type": "string"}
119 119 }
120 120 }
121 121 },
122 122
123 123 "heading_cell": {
124 124 "description": "Notebook heading cell.",
125 125 "type": "object",
126 126 "additionalProperties": false,
127 127 "properties": {
128 128 "cell_type": {
129 129 "description": "String identifying the type of cell.",
130 130 "enum": ["heading"],
131 131 "required": true
132 132 },
133 133 "metadata": {
134 134 "description": "Cell-level metadata.",
135 135 "type": "object",
136 136 "required": true,
137 137 "additionalProperties": true
138 138 },
139 139 "source": {
140 140 "description": "Contents of the cell, represented as an array of lines.",
141 141 "type": "array",
142 142 "required": true,
143 143 "items": {"type": "string"}
144 144 },
145 145 "level": {
146 146 "description": "Level of heading cells.",
147 147 "type": "integer",
148 148 "required": true,
149 149 "minimum": 1,
150 150 "maximum": 6
151 151 }
152 152 }
153 153 },
154 154
155 155 "code_cell": {
156 156 "description": "Notebook code cell.",
157 157 "type": "object",
158 158 "additionalProperties": false,
159 159 "properties": {
160 160 "cell_type": {
161 161 "description": "String identifying the type of cell.",
162 162 "enum": ["code"],
163 163 "required": true
164 164 },
165 165 "metadata": {
166 166 "description": "Cell-level metadata.",
167 167 "type": "object",
168 168 "required": true,
169 169 "additionalProperties": true,
170 170 "properties": {
171 171 "collapsed": {
172 172 "description": "Whether the cell is collapsed/expanded.",
173 173 "type": "boolean",
174 174 "required": true
175 175 },
176 176 "autoscroll": {
177 177 "description": "Whether the cell's output should autoscroll.",
178 178 "type": "boolean",
179 179 "required": true
180 180 }
181 181 }
182 182 },
183 183 "source": {
184 184 "description": "Contents of the cell, represented as an array of lines.",
185 185 "type": "array",
186 186 "required": true,
187 187 "items": {"type": "string"}
188 188 },
189 189 "outputs": {
190 190 "description": "Execution, display, or stream outputs.",
191 191 "type": "array",
192 192 "required": true,
193 193 "items": {
194 194 "type": [
195 195 {"$ref": "/definitions/execute_output"},
196 196 {"$ref": "/definitions/stream_output"},
197 197 {"$ref": "/definitions/error_output"}
198 198 ]
199 199 }
200 200 },
201 201 "prompt_number": {
202 202 "description": "The code cell's prompt number. Will be null if the cell has not been run.",
203 203 "type": ["integer", "null"],
204 204 "required": true,
205 205 "minimum": 0
206 206 }
207 207 }
208 208 },
209 209
210 210 "execute_output": {
211 211 "description": "Result of executing a code cell.",
212 212 "type": "object",
213 213 "additionalProperties": false,
214 214 "properties": {
215 215 "output_type": {
216 216 "description": "Type of cell output.",
217 217 "enum": ["execute_output", "display_data"],
218 218 "required": true
219 219 },
220 220 "metadata": {
221 221 "description": "Cell output metadata.",
222 222 "type": "object",
223 223 "required": true,
224 224 "additionalProperties": true
225 225 },
226 226 "prompt_number": {
227 227 "description": "The code cell's prompt number. Will be null if the cell has not been run.",
228 228 "type": ["integer", "null"],
229 229 "required": false,
230 230 "minimum": 0
231 231 },
232 232 "text": {
233 233 "description": "The cell's text output, represented as an array of strings.",
234 234 "type": "array",
235 235 "required": false,
236 236 "items": {"type": "string"}
237 237 },
238 238 "html": {
239 239 "description": "The cell's html output, represented as an array of strings.",
240 240 "type": "array",
241 241 "required": false,
242 242 "items": {"type": "string"}
243 243 },
244 244 "javascript": {
245 245 "description": "The cell's javascript output, represented as an array of strings.",
246 246 "type": "array",
247 247 "required": false,
248 248 "items": {"type": "string"}
249 249 },
250 250 "png": {
251 251 "description": "The cell's png output.",
252 252 "type": "string",
253 253 "required": false
254 254 }
255 255 }
256 256 },
257 257
258 258 "stream_output": {
259 259 "description": "Stream output from a code cell.",
260 260 "type": "object",
261 261 "additionalProperties": false,
262 262 "properties": {
263 263 "output_type": {
264 264 "description": "Type of cell output.",
265 265 "enum": ["stream"],
266 266 "required": true
267 267 },
268 268 "metadata": {
269 269 "description": "Cell output metadata.",
270 270 "type": "object",
271 271 "required": true,
272 272 "additionalProperties": true
273 273 },
274 274 "stream": {
275 275 "description": "The stream type/destination.",
276 276 "type": "string",
277 277 "required": true
278 278 },
279 279 "text": {
280 280 "description": "The stream's text output, represented as an array of strings.",
281 281 "type": "array",
282 282 "required": false,
283 283 "items": {"type": "string"}
284 284 }
285 285 }
286 286 },
287 287
288 288 "error_output": {
289 289 "description": "Output of an error that occurred during code cell execution.",
290 290 "type": "object",
291 291 "additionalProperties": false,
292 292 "properties": {
293 293 "output_type": {
294 294 "description": "Type of cell output.",
295 295 "enum": ["error"],
296 296 "required": true
297 297 },
298 298 "metadata": {
299 299 "description": "Cell output metadata.",
300 300 "type": "object",
301 301 "required": true,
302 302 "additionalProperties": true
303 303 },
304 304 "ename": {
305 305 "description": "The name of the error.",
306 306 "type": "string",
307 307 "required": true
308 308 },
309 309 "evalue": {
310 310 "description": "The value, or message, of the error.",
311 311 "type": "string",
312 312 "required": true
313 313 },
314 314 "traceback": {
315 315 "description": "The error's traceback, represented as an array of strings.",
316 316 "type": "array",
317 317 "required": true,
318 318 "items": {"type": "string"}
319 319 }
320 320 }
321 321 }
322 322 }
323 323 }
General Comments 0
You need to be logged in to leave comments. Login now