|
1 | 1 | {
|
2 | 2 | "$schema": "https://json-schema.org/draft/2020-12/schema",
|
3 |
| - "$id": "https://standards.jupyter.org/kernelspec.schema.json", |
4 |
| - "title": "Kernelspec", |
5 |
| - "description": "Specification of the kernelspec file", |
| 3 | + "$id": "https://schemas.jupyter.org/kernelspec-v1.0.schema.json", |
| 4 | + "title": "Jupyter Kernelspec", |
| 5 | + "description": "A description of the data required to start and manage a Jupyter Kernel", |
6 | 6 | "type": "object",
|
| 7 | + |
7 | 8 | "properties": {
|
8 | 9 | "argv": {
|
9 | 10 | "description": "A list of command line arguments used to start the kernel. The text {connection_file} in any argument will be replaced with the path to the connection file.",
|
|
22 | 23 | "type": "string"
|
23 | 24 | },
|
24 | 25 | "kernel_protocol_version": {
|
25 |
| - "description": "The version of protocol this kernel implements. If not specified, the client will assume the version is <5.5 until it can get it via the kernel_info request.", |
26 |
| - "type": "string" |
| 26 | + "description": "The version of protocol this kernel implements. If not specified, the client will assume the version is <5.5 until it can get it via the kernel_info request. The kernel protocol uses semantic versioning (SemVer).", |
| 27 | + "type": "string", |
| 28 | + "pattern": "^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$" |
27 | 29 | },
|
28 | 30 | "interrupt_mode": {
|
29 | 31 | "description": "May be either signal or message and specifies how a client is supposed to interrupt cell execution on this kernel, either by sending an interrupt signal via the operating system’s signalling facilities (e.g. SIGINT on POSIX systems), or by sending an interrupt_request message on the control channel (see Kernel interrupt). If this is not specified the client will default to signal mode.",
|
30 | 32 | "type": "string",
|
31 |
| - "enume": ["signal", "message"] |
| 33 | + "enum": ["signal", "message"] |
32 | 34 | },
|
33 | 35 | "env": {
|
34 | 36 | "description": "A dictionary of environment variables to set for the kernel. These will be added to the current environment variables before the kernel is started. Existing environment variables can be referenced using ${<ENV_VAR>} and will be substituted with the corresponding value. Administrators should note that use of ${<ENV_VAR>} can expose sensitive variables and should use only in controlled circumstances.",
|
|
37 | 39 | },
|
38 | 40 | "metadata": {
|
39 | 41 | "description": "A dictionary of additional attributes about this kernel; used by clients to aid in kernel selection. Metadata added here should be namespaced for the tool reading and writing that metadata.",
|
40 |
| - "type": "object" |
| 42 | + "type": "object", |
| 43 | + "additionalProperties": {"type": "object"} |
41 | 44 | }
|
42 | 45 | },
|
43 | 46 | "required": ["argv", "display_name", "language"]
|
|
0 commit comments