-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjupyterlite.schema.v0.json
325 lines (325 loc) · 11.3 KB
/
jupyterlite.schema.v0.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://jupyterlite.readthedocs.org/en/latest/reference/schema-v0.html#",
"title": "JupyterLite Schema v0",
"description": "a schema for user-serviceable customizaton of a JupyterLite",
"$ref": "#/definitions/top",
"definitions": {
"top": {
"title": "JupyterLite Configuration",
"description": "a user-serviceable file for customizing a JupyterLite site",
"properties": {
"jupyter-lite-schema-version": {
"type": "integer",
"description": "version of the schema to which the instance conforms",
"enum": [0]
},
"jupyter-config-data": {
"$ref": "#/definitions/jupyter-config-data"
}
}
},
"jupyterlab-settings-overrides": {
"title": "JupyterLab Settings Overrides",
"description": "A map of config objects keyed by `@org/pkg:plugin` which override the default settings. See https://jupyterlab.readthedocs.io/en/stable/user/directories.html#overridesjson",
"type": "object",
"patternProperties": {
"^(@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*:(.*)$": {
"description": "A valid configuration which must conform to the plugin's defined schema",
"type": "object"
}
}
},
"jupyter-config-data": {
"title": "Jupyter Config Data",
"description": "contents of a jupyter-config-data `<script>`, as read by `PageConfig`. These well-known values may be augmented by other extensions.",
"properties": {
"appName": {
"description": "The application name, as would appear in a Help menu",
"type": "string"
},
"appVersion": {
"description": "The version of the application",
"type": "string"
},
"baseUrl": {
"description": "base URL of this JupyterLite, must end in `/`, will be expanded by `config-utils.js` to include a leading `/`",
"type": "string",
"format": "uri",
"default": "./",
"pattern": ".*/$"
},
"appUrl": {
"description": "default app to load",
"default": "./lab",
"$ref": "#/definitions/non-trailing-slash-uri"
},
"defaultKernelName": {
"description": "The name of the default kernel. If not available, the first kernel (by alphabetic ordering) will be chosen.",
"default": "python",
"type": "string"
},
"faviconUrl": {
"description": "browser tab icon to show",
"type": "string",
"format": "uri",
"default": "./lab/favicon.ico"
},
"settingsOverrides": {
"$ref": "#/definitions/jupyterlab-settings-overrides"
},
"federated_extensions": {
"type": "array",
"items": {
"$ref": "#/definitions/federated-extension"
},
"default": []
},
"fileTypes": {
"description": "JupyterLab-compatible file types for serving and storing",
"additionalProperties": {
"$ref": "#/definitions/file-type"
}
},
"fullLabextensionsUrl": {
"description": "path to federated extensions, a folder organized by `({:org}/){package}`",
"default": "./extensions",
"$ref": "#/definitions/non-trailing-slash-uri"
},
"fullWebRtcSignalingUrls": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"description": "WebSocket URLs to use for finding WebRTC peers. Requires `jupyterlab-webrtc-docprovider`.",
"default": [
"wss://signaling.yjs.dev",
"wss://y-webrtc-signaling-eu.herokuapp.com",
"wss://y-webrtc-signaling-us.herokuapp.com"
],
"minItems": 1
},
"fullStaticUrl": {
"description": "relative path to built static assets",
"default": "./build",
"$ref": "#/definitions/non-trailing-slash-uri"
},
"enableMemoryStorage": {
"description": "enable memory storage fallback which can lose data if the page is reloaded",
"type": "boolean",
"default": false
},
"contentsStorageDrivers": {
"description": "names of the localforage driver for contents, or `null` for the best available",
"$ref": "#/definitions/localforage-driver-set"
},
"contentsStorageName": {
"description": "name used to store Jupyter contents in the browser",
"type": "string",
"default": "JupyterLite Storage"
},
"settingsStorageDrivers": {
"description": "names of the localforage driver for settings, or `null` for the best available",
"$ref": "#/definitions/localforage-driver-set"
},
"settingsStorageName": {
"description": "name used to store Jupyter settings in the browser",
"type": "string",
"default": "JupyterLite Storage"
},
"settingsUrl": {
"description": "relative path to bundled schemas",
"default": "./build/schemas",
"$ref": "#/definitions/non-trailing-slash-uri"
},
"themesUrl": {
"description": "relative path to bundled themes",
"default": "./build/themes",
"$ref": "#/definitions/non-trailing-slash-uri"
},
"licensesUrl": {
"description": "relative path to bundled licenses",
"default": "./lab/api/licenses",
"$ref": "#/definitions/non-trailing-slash-uri"
},
"disabledExtensions": {
"description": "Lab extensions (or specific plugins) to disable",
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/npm-package-name"
},
{
"$ref": "#/definitions/lab-extension-plugin-name"
}
]
}
},
"litePluginSettings": {
"description": "Additional configuration options for jupyterlite plugins, keyed by npm-compatible name",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"notebookPage": {
"description": "The page corresponding the named Notebook Classic UI section",
"anyOf": [
{
"type": "string",
"description": "an unknown notebook page"
},
{
"type": "string",
"enum": ["consoles", "notebooks", "edit", "tree"],
"description": "a well-known notebook page"
}
]
},
"exposeAppInBrowser": {
"description": "Whether to make the top-level Application instance available as ``window.jupyterapp``",
"type": "boolean",
"default": false
},
"collaborative": {
"description": "Whether to enable collaborative editing over WebRTC. Should be paired with the ``?room=<room name>`` URL parameter",
"type": "boolean",
"default": false
},
"enableServiceWorkerCache": {
"description": "Whether to enable the service worker cache",
"type": "boolean",
"default": false
}
}
},
"non-trailing-slash-uri": {
"title": "A URI what doesn't end in /",
"type": "string",
"format": "uri",
"pattern": ".*[^/]$"
},
"federated-extension": {
"title": "A Federated Extension",
"type": "object",
"required": ["name", "load"],
"properties": {
"extension": {
"type": "string",
"format": "uri",
"description": "path to the extension module to load, relative to the extension's `package.json`"
},
"mimeExtension": {
"type": "string",
"format": "uri",
"description": "path to the mime extension module to load, relative to the extension's `package.json`"
},
"load": {
"type": "string",
"format": "uri",
"description": "path to the WebPack 5-compatible `remoteEntry*.js` file describing the bundle"
},
"name": {
"$ref": "#/definitions/npm-package-name"
},
"style": {
"type": "string",
"format": "uri",
"description": "path to the optional style module provided by the extension"
}
}
},
"file-type": {
"type": "object",
"description": "description of a named contents file format, with extensions and mime types.",
"required": ["name", "mimeTypes", "extensions", "fileFormat"],
"properties": {
"name": {
"type": "string"
},
"mimeTypes": {
"type": "array",
"items": {
"type": "string"
}
},
"extensions": {
"type": "array",
"items": {
"type": "string",
"pattern": "^\\..+"
}
},
"fileFormat": {
"type": "string",
"enum": ["base64", "text", "json"]
}
}
},
"npm-package-name": {
"title": "An NPM Package Name",
"type": "string",
"description": "package.json-compatible extension name, with an optional organization prefix. See https://github.com/dword-design/package-name-regex/blob/master/src/index.js",
"pattern": "^(@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*$"
},
"lab-extension-plugin-name": {
"title": "A JupyterLab Plugin",
"type": "string",
"description": "a package.json-compatible extension name followed by a colon (:) and a specific plugin name",
"pattern": "^(@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*:(.*)$"
},
"localforage-driver-set": {
"title": "A LocalForage Driver Set",
"anyOf": [
{
"type": "null",
"title": "detect",
"description": "choose the best available driver"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/localforage-driver"
}
}
]
},
"localforage-driver": {
"title": "A LocalForage Driver",
"description": "choose a storage driver from any number of localForage drivers",
"anyOf": [
{
"type": "string",
"title": "custom",
"description": "use a custom driver added by a third-party plugin"
},
{
"title": "IndexedDB",
"description": "use the broadly-compatible IndexedDB key/value persistent store",
"type": "string",
"enum": ["asyncStorage"]
},
{
"title": "WebSQL",
"description": "use the WebSQL persistent store",
"type": "string",
"enum": ["webSQLStorage"]
},
{
"title": "localStorage",
"description": "use the localStorage persistent store",
"type": "string",
"enum": ["localStorageWrapper"]
},
{
"title": "memory",
"description": "use the memory-based, volatile store: must be enabled with enableMemoryStorage",
"type": "string",
"enum": ["localStorageWrapper"]
}
]
}
}
}