##// END OF EJS Templates
Misc style changes to descriptions
Misc style changes to descriptions

File last commit:

r16883:c622e508
r16883:c622e508
Show More
v4.withref.json
172 lines | 6.1 KiB | application/json | JsonLexer
Jessica B. Hamrick
Copy v3 --> v4
r16871 {
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "$schema": "http://json-schema.org/draft-03/schema#",
"description": "IPython Notebook v4.0 JSON schema.",
"type": "object",
"additionalProperties": false,
"properties": {
"metadata": {
"description": "Notebook root-level metadata.",
"type": "object",
"required": true,
"additionalProperties": true,
"properties": {
"language": {
"description": "Language of the notebook's kernel.",
"type": "string",
"required": true
},
"kernel_info": {
"description": "Other kernel information, to be determined."
"type": "object",
"required": true,
"additionalProperties": true
Jessica B. Hamrick
Move language key from code cells to top-level notebook metadata
r16878 }
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 }
},
"nbformat_minor": {
"description": "Notebook format (minor number). Incremented for slight changes to the notebook format.",
"type": "integer",
"required": true,
"minimum": 0
},
"nbformat": {
"description": "Notebook format (major number). Incremented between backwards incompatible changes to the notebook format.",
"type": "integer",
"required": true,
"minimum": 4
},
"orig_nbformat": {
"description": "Original notebook format (major number) before converting the notebook between versions.",
"type": "integer",
"required": false,
"minimum": 1
},
"cells": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Array of cells of the current notebook.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "array",
"required": true,
"items": {
"type": [
{"$ref": "#/definitions/text_cell"},
{"$ref": "#/definitions/heading_cell"},
{"$ref": "#/definitions/code_cell"}
]
Jessica B. Hamrick
Copy v3 --> v4
r16871 }
}
},
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "definitions": {
"text_cell": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Notebook text cell.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "object",
"additionalProperties": false,
"properties": {
"cell_type": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "String identifying the type of cell.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "enum": ["markdown", "raw"],
Jessica B. Hamrick
Make indent level be consistent
r16874 "required": true
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 },
"metadata": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Cell-level metadata.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "object",
"required": true,
"additionalProperties": true
},
"source": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Contents of the cell, represented as an array of lines (each terminated by \n).",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "array",
"required": true,
"items": {
"type": "string",
"pattern": "^.*\n$"
}
Jessica B. Hamrick
Make indent level be consistent
r16874 }
Jessica B. Hamrick
Copy v3 --> v4
r16871 }
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 },
Jessica B. Hamrick
Copy v3 --> v4
r16871
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "heading_cell": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Notebook heading cell.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "object",
"additionalProperties": false,
"properties": {
"cell_type": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "String identifying the type of cell.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "enum": ["heading"],
Jessica B. Hamrick
Make indent level be consistent
r16874 "required": true
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 },
"metadata": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Cell-level metadata.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "object",
"required": true,
"additionalProperties": true
},
"source": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Contents of the cell, represented as an array of lines (each terminated by \n).",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "array",
"required": true,
"items": {
"type": "string",
"pattern": "^.*\n$"
}
},
"level": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Level of heading cells.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "integer",
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "required": true,
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "minimum": 1,
"maximum": 6
Jessica B. Hamrick
Make indent level be consistent
r16874 }
Jessica B. Hamrick
Make cell content key uniform...
r16876 }
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 },
"code_cell": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Notebook code cell.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "object",
"additionalProperties": false,
"properties": {
"cell_type": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "String identifying the type of cell.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "enum": ["code"],
"required": true
},
"metadata": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Cell-level metadata.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "object",
"required": true,
"additionalProperties": true
},
"source": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Contents of the cell, represented as an array of lines (each terminated by \n).",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "array",
"required": true,
"items": {
"type": "string",
"pattern": "^.*\n$"
}
}
"outputs": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Outputs of cell, to be defined.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "array",
"required": true
},
"collapsed": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Whether the cell is collapsed/expanded.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "boolean",
"required": true
},
"autoscroll": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "Whether the cell's output should autoscroll.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": "boolean",
"required": true
},
"prompt_number": {
Jessica B. Hamrick
Misc style changes to descriptions
r16883 "description": "The code cell's prompt number. Will be null if the cell has not been run.",
Jessica B. Hamrick
Conform better to JSON schema version 3
r16882 "type": ["integer", "null"],
"required": true,
"minimum": 0
}
Jessica B. Hamrick
Copy v3 --> v4
r16871 }
}
}
}