How do I start a Jupyter kernel in a SageMath Worksheet?
• smc
For a quick reminder, sample code is available for opening an Anaconda3 session. In the Sage worksheet toolbar, select Modes > Jupyter bridge.
Use the jupyter
command to launch any installed Jupyter kernel from a Sage worksheet
After that, any cell that begins with %py3
will send statements to the Python3 kernel that you just started. If you want to draw graphics, there is no need to call %matplotlib inline
.
You can set the default mode to be your Jupyter kernel for all cells in the worksheet: after putting the following in a cell, click the “restart” button, and you have an anaconda worksheet.
Each call to jupyter() launches its own Jupyter kernel, so you can have more than one instance of the same kernel type in the same worksheet session.