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