Skip to main content

Section 35.2 Electing a Kernel

Every notebook names the kernel that executes its code cells. Elect one in your publication file:
<jupyter kernel="sagemath"/>
The default, sagemath, names the latest Sage kernel in the Jupyter application of the Sage distribution, and in CoCalc, and is the right choice when your code is in <sage> elements. The alternative, python3, is the standard Python kernel present in every Jupyter installation. A reader whose Jupyter lacks the named kernel is offered a substitution by the application itself, so this choice is a sensible default, not a hard requirement.