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?
json file to make the SageMath Jupyter kernel aware of SageMath's location, by adding "env":{"SAGE_ROOT":"/path/to/sage"} at the end of the dictionary in kernel. json . You will find the location of kernel. json by executing jupyter kernelspec list .
The traditional and recommended way to install SageMath is from source via Sage-the-distribution (https://www.sagemath.org/download-source.html).
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With