|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://schema.jupyter.org/connectionfile-v1.0.schema.json", |
| 4 | + "title": "Jupyter Connection File", |
| 5 | + "description": "A description of the data required to connect and send messages to a Jupyter Kernel", |
| 6 | + "type": "object", |
| 7 | + |
| 8 | + "definitions": { |
| 9 | + "signature": { |
| 10 | + "type": "object", |
| 11 | + "required": ["signature_scheme", "key"], |
| 12 | + "properties": { |
| 13 | + "signature_scheme": { |
| 14 | + "enum": ["hmac-md5","hmac-sha256","hmac-sha512"], |
| 15 | + "description": "scheme used to sign the messages" |
| 16 | + }, |
| 17 | + "key": { |
| 18 | + "type": "string", |
| 19 | + "description": "key used to sign the messages" |
| 20 | + } |
| 21 | + } |
| 22 | + }, |
| 23 | + "kernel_network": { |
| 24 | + "type": "object", |
| 25 | + "required": ["transport", "ip", "shell_port", "control_port", "stdin_port", "hb_port", "iopub_port"], |
| 26 | + "properties": { |
| 27 | + "transport": { |
| 28 | + "type": "string", |
| 29 | + "description": "transport protocol", |
| 30 | + "enum": ["tcp", "ipc", "inproc"] |
| 31 | + }, |
| 32 | + "ip": { |
| 33 | + "type": "string", |
| 34 | + "description": "ip of the machine where the kernel runs" |
| 35 | + }, |
| 36 | + "shell_port": { |
| 37 | + "type": ["integer","string"], |
| 38 | + "description": "port used by the shell channel" |
| 39 | + }, |
| 40 | + "control_port": { |
| 41 | + "type": ["integer","string"], |
| 42 | + "description": "port used by the control channel" |
| 43 | + }, |
| 44 | + "stdin_port": { |
| 45 | + "type": ["integer","string"], |
| 46 | + "description": "port used by the stdin channel" |
| 47 | + }, |
| 48 | + "hb_port": { |
| 49 | + "type": ["integer","string"], |
| 50 | + "description": "port used by the heartbeat channel" |
| 51 | + }, |
| 52 | + "iopub_port": { |
| 53 | + "type": ["ingerer","string"], |
| 54 | + "description": "port used by the iopub channel" |
| 55 | + } |
| 56 | + } |
| 57 | + } |
| 58 | + }, |
| 59 | + "allOf": [ |
| 60 | + { "$ref": "#/definitions/kernel_network" }, |
| 61 | + { "$ref": "#/definitions/signature" } |
| 62 | + ] |
| 63 | +} |
| 64 | + |
0 commit comments