File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ kernelspec - discovering kernels
30
30
Additional kernel-specific metadata; clients can use this as needed,
31
31
for instance to aid in kernel selection and filtering.
32
32
33
+ Metadata added here should be namespaced for the tool reading and
34
+ writing that metadata. Concretely, if you're adding a new field called
35
+ :code: `supported_versions ` which your tool recognizes, then you should
36
+ add it as :code: `"mytool": {"supported_versions": [1, 2]} `, **not ** as a
37
+ top-level field called :code: `supported_versions `.
38
+
33
39
.. attribute :: resource_dir
34
40
35
41
The path to the directory with this kernel's resources, such as icons.
Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ JSON serialised dictionary containing the following keys and values:
136
136
These will be added to the current environment variables before the kernel is
137
137
started.
138
138
- **metadata ** (optional): A dictionary of additional attributes about this
139
- kernel; used by clients to aid clients in kernel selection.
139
+ kernel; used by clients to aid clients in kernel selection. Metadata added
140
+ here should be namespaced for the tool reading and writing that metadata.
140
141
141
142
For example, the kernel.json file for IPython looks like this::
142
143
You can’t perform that action at this time.
0 commit comments