@@ -112,34 +112,16 @@ JSON serialised dictionary containing the following keys and values:
112112- **display_name **: The kernel's name as it should be displayed in the UI.
113113 Unlike the kernel name used in the API, this can contain arbitrary unicode
114114 characters.
115- - **language **: The programming language which this kernel runs. This will be
116- stored in notebook metadata. This may be used by syntax highlighters to guess
117- how to parse code in a notebook, and frontends may eventually use it to
118- identify alternative kernels that can run some code.
119- - **codemirror_mode ** (optional): The `codemirror mode <http://codemirror.net/mode/index.html >`_
120- to use for code in this language. This can be a string or a dictionary, as
121- passed to codemirror config. This only needs to be specified if it does not
122- match the value in *language *.
123- - **pygments_lexer ** (optional): The name of a `Pygments lexer <http://pygments.org/docs/lexers/ >`_
124- to use for code in this language, as a string. This only needs to be specified
125- if it does not match the value in *language *.
126115- **env ** (optional): A dictionary of environment variables to set for the kernel.
127116 These will be added to the current environment variables before the kernel is
128117 started.
129- - **help_links ** (optional): A list of dictionaries, each with keys 'text' and
130- 'url'. These will be displayed in the help menu in the notebook UI.
131118
132119For example, the kernel.json file for IPython looks like this::
133120
134121 {
135122 "argv": ["python3", "-c", "from IPython.kernel.zmq.kernelapp import main; main()",
136- "-f", "{connection_file}"],
137- "codemirror_mode": {
138- "version": 3,
139- "name": "ipython"
140- },
123+ "-f", "{connection_file}"],
141124 "display_name": "IPython (Python 3)",
142- "language": "python"
143125 }
144126
145127To see the available kernel specs, run::
0 commit comments