You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: jupyter-parameterized-kernel-spec/jupyter-parameterized-kernel-specs.md
+23-11
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
When creating a new kernel, we need to define a different "specs" file for each possible parameter combination used by the executable. For example, the xeus-cling kernel supports three different versions of the `C++` language, `C++11`, `C++14`, and `C++17`, which is specified by the `--std` command-line option.
6
6
7
-
When installing xeus-cling, we install three almost identical kernel specs. The only difference is the last parameter of the execution command `-std=c++X`.
7
+
When installing xeus-cling, we install three almost identical kernel specs. The only difference is the last parameter of the execution command `--std=c++X`.
8
8
9
9
When more than one parameter is available, the number of possible combinations grows in a combinatorics fashion.
10
10
@@ -22,7 +22,7 @@ Some of the chosen parameter values can be saved in e.g. the notebook metadata s
22
22
23
23
## Detailed Explanation
24
24
25
-
As described in previous sections, we propose to parameterize the kernel specs file. In the example shown below, we can see the kernel specs file from the kernel xeus-cling. We suggest changing the last parameter of the execution command `-std=c++11` to have a variable `-std=${cpp_version}` and adding a new object `parameters` to the metadata of the kernel specs.
25
+
As described in previous sections, we propose to parameterize the kernel specs file. In the example shown below, we can see the kernel specs file from the kernel xeus-cling. We suggest changing the last parameter of the execution command `-std=c++11` to have a variable `-std=${parameters.cpp_version}` and adding a new object `parameters` to the metadata of the kernel specs.
26
26
27
27
```=json
28
28
{
@@ -33,6 +33,9 @@ As described in previous sections, we propose to parameterize the kernel specs f
33
33
"{connection_file}",
34
34
"-std=c++11"
35
35
],
36
+
env: [
37
+
"XEUS_LOGLEVEL=ERROR"
38
+
],
36
39
"language": "C++11"
37
40
}
38
41
```
@@ -43,19 +46,28 @@ As described in previous sections, we propose to parameterize the kernel specs f
0 commit comments