Show More
@@ -1,171 +1,172 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 | } |
|
25 | 25 | }, |
|
26 | 26 | "nbformat_minor": { |
|
27 | 27 | "description": "Notebook format (minor number). Incremented for slight changes to the notebook format.", |
|
28 | 28 | "type": "integer", |
|
29 | 29 | "required": true, |
|
30 | 30 | "minimum": 0 |
|
31 | 31 | }, |
|
32 | 32 | "nbformat": { |
|
33 | 33 | "description": "Notebook format (major number). Incremented between backwards incompatible changes to the notebook format.", |
|
34 | 34 | "type": "integer", |
|
35 | 35 | "required": true, |
|
36 | 36 | "minimum": 4 |
|
37 | 37 | }, |
|
38 | 38 | "orig_nbformat": { |
|
39 | 39 | "description": "Original notebook format (major number) before converting the notebook between versions.", |
|
40 | 40 | "type": "integer", |
|
41 | 41 | "required": false, |
|
42 | 42 | "minimum": 1 |
|
43 | 43 | }, |
|
44 | 44 | "cells": { |
|
45 |
"description": " |
|
|
45 | "description": "Array of cells of the current notebook.", | |
|
46 | 46 | "type": "array", |
|
47 | 47 | "required": true, |
|
48 | 48 | "items": { |
|
49 | 49 | "type": [ |
|
50 | 50 | {"$ref": "#/definitions/text_cell"}, |
|
51 | 51 | {"$ref": "#/definitions/heading_cell"}, |
|
52 | 52 | {"$ref": "#/definitions/code_cell"} |
|
53 | 53 | ] |
|
54 | 54 | } |
|
55 | 55 | } |
|
56 | 56 | }, |
|
57 | 57 | |
|
58 | 58 | "definitions": { |
|
59 | 59 | |
|
60 | 60 | "text_cell": { |
|
61 | "description": "Notebook text cell", | |
|
61 | "description": "Notebook text cell.", | |
|
62 | 62 | "type": "object", |
|
63 | 63 | "additionalProperties": false, |
|
64 | 64 | "properties": { |
|
65 | 65 | "cell_type": { |
|
66 | "description": "String identifying the type of cell", | |
|
66 | "description": "String identifying the type of cell.", | |
|
67 | 67 | "enum": ["markdown", "raw"], |
|
68 | 68 | "required": true |
|
69 | 69 | }, |
|
70 | 70 | "metadata": { |
|
71 | "description": "Cell-level metadata", | |
|
71 | "description": "Cell-level metadata.", | |
|
72 | 72 | "type": "object", |
|
73 | 73 | "required": true, |
|
74 | 74 | "additionalProperties": true |
|
75 | 75 | }, |
|
76 | 76 | "source": { |
|
77 | "description": "Contents of the cell, represented as an array of lines (each terminated by \n)", | |
|
77 | "description": "Contents of the cell, represented as an array of lines (each terminated by \n).", | |
|
78 | 78 | "type": "array", |
|
79 | 79 | "required": true, |
|
80 | 80 | "items": { |
|
81 | 81 | "type": "string", |
|
82 | 82 | "pattern": "^.*\n$" |
|
83 | 83 | } |
|
84 | 84 | } |
|
85 | 85 | } |
|
86 | 86 | }, |
|
87 | 87 | |
|
88 | 88 | "heading_cell": { |
|
89 | "description": "Notebook heading cell", | |
|
89 | "description": "Notebook heading cell.", | |
|
90 | 90 | "type": "object", |
|
91 | 91 | "additionalProperties": false, |
|
92 | 92 | "properties": { |
|
93 | 93 | "cell_type": { |
|
94 | "description": "String identifying the type of cell", | |
|
94 | "description": "String identifying the type of cell.", | |
|
95 | 95 | "enum": ["heading"], |
|
96 | 96 | "required": true |
|
97 | 97 | }, |
|
98 | 98 | "metadata": { |
|
99 | "description": "Cell-level metadata", | |
|
99 | "description": "Cell-level metadata.", | |
|
100 | 100 | "type": "object", |
|
101 | 101 | "required": true, |
|
102 | 102 | "additionalProperties": true |
|
103 | 103 | }, |
|
104 | 104 | "source": { |
|
105 | "description": "Contents of the cell, represented as an array of lines (each terminated by \n)", | |
|
105 | "description": "Contents of the cell, represented as an array of lines (each terminated by \n).", | |
|
106 | 106 | "type": "array", |
|
107 | 107 | "required": true, |
|
108 | 108 | "items": { |
|
109 | 109 | "type": "string", |
|
110 | 110 | "pattern": "^.*\n$" |
|
111 | 111 | } |
|
112 | 112 | }, |
|
113 | 113 | "level": { |
|
114 | "description": "Level of heading cells", | |
|
114 | "description": "Level of heading cells.", | |
|
115 | 115 | "type": "integer", |
|
116 |
"required": |
|
|
116 | "required": true, | |
|
117 | 117 | "minimum": 1, |
|
118 | 118 | "maximum": 6 |
|
119 | 119 | } |
|
120 | 120 | } |
|
121 | 121 | }, |
|
122 | 122 | |
|
123 | 123 | "code_cell": { |
|
124 | "description": "Notebook code cell", | |
|
124 | "description": "Notebook code cell.", | |
|
125 | 125 | "type": "object", |
|
126 | 126 | "additionalProperties": false, |
|
127 | 127 | "properties": { |
|
128 | 128 | "cell_type": { |
|
129 | "description": "String identifying the type of cell", | |
|
129 | "description": "String identifying the type of cell.", | |
|
130 | 130 | "enum": ["code"], |
|
131 | 131 | "required": true |
|
132 | 132 | }, |
|
133 | 133 | "metadata": { |
|
134 | "description": "Cell-level metadata", | |
|
134 | "description": "Cell-level metadata.", | |
|
135 | 135 | "type": "object", |
|
136 | 136 | "required": true, |
|
137 | 137 | "additionalProperties": true |
|
138 | 138 | }, |
|
139 | 139 | "source": { |
|
140 | "description": "Contents of the cell, represented as an array of lines (each terminated by \n)", | |
|
140 | "description": "Contents of the cell, represented as an array of lines (each terminated by \n).", | |
|
141 | 141 | "type": "array", |
|
142 | 142 | "required": true, |
|
143 | 143 | "items": { |
|
144 | 144 | "type": "string", |
|
145 | 145 | "pattern": "^.*\n$" |
|
146 | 146 | } |
|
147 | 147 | } |
|
148 | 148 | "outputs": { |
|
149 | "description": "Outputs of cell, to be defined", | |
|
149 | "description": "Outputs of cell, to be defined.", | |
|
150 | 150 | "type": "array", |
|
151 | 151 | "required": true |
|
152 | 152 | }, |
|
153 | 153 | "collapsed": { |
|
154 | "description": "Whether the cell is collapsed/expanded", | |
|
154 | "description": "Whether the cell is collapsed/expanded.", | |
|
155 | 155 | "type": "boolean", |
|
156 | 156 | "required": true |
|
157 | 157 | }, |
|
158 | 158 | "autoscroll": { |
|
159 | "description": "Whether the cell's output should autoscroll", | |
|
159 | "description": "Whether the cell's output should autoscroll.", | |
|
160 | 160 | "type": "boolean", |
|
161 | 161 | "required": true |
|
162 | 162 | }, |
|
163 | 163 | "prompt_number": { |
|
164 | "description": "The code cell's prompt number. Will be null if the cell has not been run.", | |
|
164 | 165 | "type": ["integer", "null"], |
|
165 | 166 | "required": true, |
|
166 | 167 | "minimum": 0 |
|
167 | 168 | } |
|
168 | 169 | } |
|
169 | 170 | } |
|
170 | 171 | } |
|
171 | 172 | } |
General Comments 0
You need to be logged in to leave comments.
Login now