How to install sagemath kernel in Jupyter

user567879 picture user567879 · Sep 2, 2016 · Viewed 16.7k times · Source

I could use Python Kernel with Jupyter. I am looking for a way to use sagemath inside Jupyter.I couldnt see a way for installing it. How to do that?

Answer

Layek picture Layek · Jan 11, 2017

I have just installed SageMath kernel on my existing Jupyter installation. It's super easy.

$ sudo jupyter kernelspec install ./SageMath/local/share/jupyter/kernels/sagemath

Where SageMath is your root sagemath directory. Hope this will help someone.

If you don't have sudo rights you won't be able to install system-wide, but you can still install for yourself using the --user flag:

$ jupyter kernelspec install --user ./SageMath/local/share/jupyter/kernels/sagemath