diff --git a/IPython/nbformat/v4/v4.withref.json b/IPython/nbformat/v4/v4.withref.json index 51dce29..8681d30 100644 --- a/IPython/nbformat/v4/v4.withref.json +++ b/IPython/nbformat/v4/v4.withref.json @@ -183,7 +183,8 @@ "type": [ {"$ref": "/definitions/execute_output"}, {"$ref": "/definitions/display_data_output"}, - {"$ref": "/definitions/stream_output"} + {"$ref": "/definitions/stream_output"}, + {"$ref": "/definitions/error_output"} ] } }, @@ -312,6 +313,41 @@ "items": {"type": "string"} } } + }, + + "error_output": { + "description": "Output of an error that occurred during code cell execution.", + "type": "object", + "additionalProperties": false, + "properties": { + "output_type": { + "description": "Type of cell output.", + "enum": ["error"], + "required": true + }, + "metadata": { + "description": "Cell output metadata.", + "type": "object", + "required": true, + "additionalProperties": true + }, + "ename": { + "description": "The name of the error.", + "type": "string", + "required": true + }, + "evalue": { + "description": "The value, or message, of the error.", + "type": "string", + "required": true + }, + "traceback": { + "description": "The error's traceback, represented as an array of strings.", + "type": "array", + "required": false, + "items": {"type": "string"} + } + } } } }