##// END OF EJS Templates
Flesh out output types
Jessica B. Hamrick -
Show More
@@ -205,15 +205,103 b''
205 },
205 },
206
206
207 "pyout_output": {
207 "pyout_output": {
208
208 "description": "Result of executing a code cell.",
209 "type": "object",
210 "properties": {
211 "output_type": {
212 "description": "Type of cell output.",
213 "enum": ["pyout"],
214 "required": true
215 },
216 "metadata": {
217 "description": "Cell output metadata.",
218 "type": "object",
219 "required": true,
220 "additionalProperties": true
221 },
222 "prompt_number": {
223 "description": "The code cell's prompt number. Will be null if the cell has not been run.",
224 "type": ["integer", "null"],
225 "required": true,
226 "minimum": 0
227 }
228 "text": {
229 "description": "The cell's text output, represented as an array of strings.",
230 "type": "array",
231 "required": false,
232 "items": {"type": "string"}
233 },
234 "html": {
235 "description": "The cell's html output, represented as an array of strings.",
236 "type": "array",
237 "required": false,
238 "items": {"type": "string"}
239 },
240 "png": {
241 "description": "The cell's png output.",
242 "type": "string",
243 "required": false,
244 }
245 }
209 },
246 },
210
247
211 "display_data_output": {
248 "display_data_output": {
212
249 "description": "Display data output from a code cell.",
250 "type": "object",
251 "properties": {
252 "output_type": {
253 "description": "Type of cell output.",
254 "enum": ["display_data"],
255 "required": true
256 },
257 "metadata": {
258 "description": "Cell output metadata.",
259 "type": "object",
260 "required": true,
261 "additionalProperties": true
262 },
263 "text": {
264 "description": "The display data text output, represented as an array of strings.",
265 "type": "array",
266 "required": false,
267 "items": {"type": "string"}
268 },
269 "javascript": {
270 "description": "The cell's javascript output, represented as an array of strings.",
271 "type": "array",
272 "required": false,
273 "items": {"type": "string"}
274 },
275 }
213 },
276 },
214
277
215 "stream_output": {
278 "stream_output": {
216
279 "description": "Stream output from a code cell.",
280 "type": "object",
281 "properties": {
282 "output_type": {
283 "description": "Type of cell output.",
284 "enum": ["stream"],
285 "required": true
286 },
287 "metadata": {
288 "description": "Cell output metadata.",
289 "type": "object",
290 "required": true,
291 "additionalProperties": true
292 },
293 "stream": {
294 "description": "The stream type/destination.",
295 "type": "string",
296 "required": true
297 },
298 "text": {
299 "description": "The stream's text output, represented as an array of strings.",
300 "type": "array",
301 "required": false,
302 "items": {"type": "string"}
303 }
304 }
217 }
305 }
218 }
306 }
219 }
307 }
General Comments 0
You need to be logged in to leave comments. Login now