Skip to content

Jupyter Kernel

Sarita Singh edited this page Oct 18, 2021 · 3 revisions

Jupyter Kernel

  • A kernel is a program that runs and introspects the user’s code.

  • xeus library is used to make kernel for Jupyter Notebook. Kernel authors only need to implement the language-specific logic in their implementation (execute code, auto-completion…). This is the simplest solution if your target language can be driven from C or C++: e.g. if it has a C-API like most scripting languages.

Kernel specs

  • argv: 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.

  • display_name: The kernel’s name as it should be displayed in the UI. Unlike the kernel name used in the API, this can contain arbitrary unicode characters.

  • language: The name of the language of the kernel. When loading notebooks, if no matching kernelspec key (may differ across machines) is found, a kernel with a matching language will be used. This allows a notebook written on any Python or Julia kernel to be properly associated with the user’s Python or Julia kernel, even if they aren’t listed under the same name as the author’s.

Develop a kernel using xeus library

https://xeus.readthedocs.io/en/latest/usage.html#usage

Clone this wiki locally