##// END OF EJS Templates
Add state for auto-scroll
Jessica B. Hamrick -
Show More
@@ -1,152 +1,156 b''
1 {
1 {
2 "description": "custom json structure with references to generate notebook schema",
2 "description": "custom json structure with references to generate notebook schema",
3 "notebook": {
3 "notebook": {
4 "type": "object",
4 "type": "object",
5 "description": "notebook v4.0 root schema",
5 "description": "notebook v4.0 root schema",
6 "$schema": "http://json-schema.org/draft-03/schema",
6 "$schema": "http://json-schema.org/draft-03/schema",
7 "id": "#notebook",
7 "id": "#notebook",
8 "required": true,
8 "required": true,
9 "additionalProperties": false,
9 "additionalProperties": false,
10 "properties": {
10 "properties": {
11 "metadata": {
11 "metadata": {
12 "type": "object",
12 "type": "object",
13 "id": "metadata",
13 "id": "metadata",
14 "required": true,
14 "required": true,
15 "description": "the metadata atribute can contain any additionnal information",
15 "description": "the metadata atribute can contain any additionnal information",
16 "additionalProperties": true,
16 "additionalProperties": true,
17 "properties": {
17 "properties": {
18 "language": {
18 "language": {
19 "type": "string",
19 "type": "string",
20 "required": true
20 "required": true
21 },
21 },
22 "kernel_info": {
22 "kernel_info": {
23 "type": "object",
23 "type": "object",
24 "required": true,
24 "required": true,
25 "description": "kernel information, to be determined"
25 "description": "kernel information, to be determined"
26 }
26 }
27 }
27 }
28 },
28 },
29 "nbformat_minor": {
29 "nbformat_minor": {
30 "description": "Notebook format, minor number. Incremented for slight variation of notebook format.",
30 "description": "Notebook format, minor number. Incremented for slight variation of notebook format.",
31 "type": "integer",
31 "type": "integer",
32 "minimum": 0,
32 "minimum": 0,
33 "id": "nbformat_minor",
33 "id": "nbformat_minor",
34 "required": true
34 "required": true
35 },
35 },
36 "nbformat": {
36 "nbformat": {
37 "description": "Notebook format, major number. Incremented between backward incompatible change is introduced.",
37 "description": "Notebook format, major number. Incremented between backward incompatible change is introduced.",
38 "type": "integer",
38 "type": "integer",
39 "minimum": 4,
39 "minimum": 4,
40 "id": "nbformat",
40 "id": "nbformat",
41 "required": true
41 "required": true
42 },
42 },
43 "orig_nbformat": {
43 "orig_nbformat": {
44 "description": "Original notebook format, major number.",
44 "description": "Original notebook format, major number.",
45 "type": "integer",
45 "type": "integer",
46 "minimum": 1,
46 "minimum": 1,
47 "id": "orig_nbformat",
47 "id": "orig_nbformat",
48 "required": false
48 "required": false
49 },
49 },
50 "cells": {
50 "cells": {
51 "$schema": "http://json-schema.org/draft-03/schema",
51 "$schema": "http://json-schema.org/draft-03/schema",
52 "description": "array of cells of the current worksheet",
52 "description": "array of cells of the current worksheet",
53 "type": "array",
53 "type": "array",
54 "id": "#cells",
54 "id": "#cells",
55 "required": true,
55 "required": true,
56 "items": {"$ref": "/any_cell"}
56 "items": {"$ref": "/any_cell"}
57 }
57 }
58 }
58 }
59 },
59 },
60
60
61 "text_cell": {
61 "text_cell": {
62 "type": "object",
62 "type": "object",
63 "description": "scheme for text cel and childrenm (level only optionnal argument for HEader cell)",
63 "description": "scheme for text cel and childrenm (level only optionnal argument for HEader cell)",
64 "$schema": "http://json-schema.org/draft-03/schema",
64 "$schema": "http://json-schema.org/draft-03/schema",
65 "id": "#cell",
65 "id": "#cell",
66 "required": true,
66 "required": true,
67 "additionalProperties": false,
67 "additionalProperties": false,
68 "properties": {
68 "properties": {
69 "cell_type": {
69 "cell_type": {
70 "type": "string",
70 "type": "string",
71 "id": "cell_type",
71 "id": "cell_type",
72 "required": true
72 "required": true
73 },
73 },
74 "level": {
74 "level": {
75 "type": "integer",
75 "type": "integer",
76 "minimum": 1,
76 "minimum": 1,
77 "maximum": 6,
77 "maximum": 6,
78 "id": "level",
78 "id": "level",
79 "required": false
79 "required": false
80 },
80 },
81 "metadata": {
81 "metadata": {
82 "type": "object",
82 "type": "object",
83 "id": "metadata",
83 "id": "metadata",
84 "required": false
84 "required": false
85 },
85 },
86 "source": {
86 "source": {
87 "description": "source text of the cell",
87 "description": "source text of the cell",
88 "type": "array",
88 "type": "array",
89 "id": "source",
89 "id": "source",
90 "required": true,
90 "required": true,
91 "items": {
91 "items": {
92 "type": "string",
92 "type": "string",
93 "description": "each item represents one line of cell, terminated by \n",
93 "description": "each item represents one line of cell, terminated by \n",
94 "required": true
94 "required": true
95 }
95 }
96 }
96 }
97 }
97 }
98
98
99 },
99 },
100
100
101 "any_cell": {
101 "any_cell": {
102 "description": "Meta cell type that match any cell type",
102 "description": "Meta cell type that match any cell type",
103 "type": [{"$ref": "/text_cell"}, {"$ref":"/code_cell"}],
103 "type": [{"$ref": "/text_cell"}, {"$ref":"/code_cell"}],
104 "$schema": "http://json-schema.org/draft-03/schema"
104 "$schema": "http://json-schema.org/draft-03/schema"
105 },
105 },
106
106
107 "code_cell": {
107 "code_cell": {
108 "type": "object",
108 "type": "object",
109 "$schema": "http://json-schema.org/draft-03/schema",
109 "$schema": "http://json-schema.org/draft-03/schema",
110 "description": "Cell used to execute code",
110 "description": "Cell used to execute code",
111 "id": "#cell",
111 "id": "#cell",
112 "required": true,
112 "required": true,
113 "additionalProperties": false,
113 "additionalProperties": false,
114 "properties": {
114 "properties": {
115 "cell_type": {
115 "cell_type": {
116 "type": "string",
116 "type": "string",
117 "id": "cell_type",
117 "id": "cell_type",
118 "required": true
118 "required": true
119 },
119 },
120 "metadata": {
120 "metadata": {
121 "type": "object",
121 "type": "object",
122 "id": "metadata",
122 "id": "metadata",
123 "required": false
123 "required": false
124 },
124 },
125 "collapsed": {
125 "collapsed": {
126 "type": "boolean",
126 "type": "boolean",
127 "required": true
127 "required": true
128 },
128 },
129 "autoscroll": {
130 "type": "boolean",
131 "required": true
132 },
129 "source": {
133 "source": {
130 "description": "for code cell source code",
134 "description": "for code cell source code",
131 "type": "array",
135 "type": "array",
132 "id": "source",
136 "id": "source",
133 "required": true,
137 "required": true,
134 "items": {
138 "items": {
135 "type": "string",
139 "type": "string",
136 "description": "each item represents one line of the source code written, terminated by \n",
140 "description": "each item represents one line of the source code written, terminated by \n",
137 "required": true
141 "required": true
138 }
142 }
139 }
143 }
140 "outputs": {
144 "outputs": {
141 "description": "output for code cell, to be definied",
145 "description": "output for code cell, to be definied",
142 "required": true,
146 "required": true,
143 "type": "array"
147 "type": "array"
144 },
148 },
145 "prompt_number": {
149 "prompt_number": {
146 "type": ["integer", "null"],
150 "type": ["integer", "null"],
147 "required": false,
151 "required": false,
148 "minimum": 0
152 "minimum": 0
149 }
153 }
150 }
154 }
151 }
155 }
152 }
156 }
General Comments 0
You need to be logged in to leave comments. Login now