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