Ask Your Question

Integrate SAGE Jupyter Notebook in Anaconda Python Distribution

asked 2016-03-08 19:42:59 -0500

EduardoJV gravatar image

Hello, i'm Eduardo Vieira a Mechanical Engineering student from Venezeula. I use Python for everything and now i'm looing to Sage but is there a way to integrate Sage with the Jupyter Notebook? To get sage in the Notebook i have to run sage -ipython but i want to have the Sage kernel avaible when i run jupyter notebook.

I am using the Anaconda python distribution in Ubuntu Linux.

Thanks and sorry for my english, i know it is really bad.

edit retag flag offensive close merge delete


You can definitely use Sage kernel in Jupyter, but I think you might indeed have to do it via Sage distribution and not Anaconda... I say the same thing at but I'm not an expert on distributions by any means.

kcrisman gravatar imagekcrisman ( 2016-03-09 08:53:55 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2016-03-09 09:28:24 -0500

EduardoJV gravatar image

updated 2016-03-09 09:30:05 -0500


I solved my problem. I have copied the kernel from /usr/lib/sagemath/local/share/jupyter/kernels/ to /home/eduardo/.local/share/jupyter/kernels/ and works fine. It still use the python distribution that come with sage but when i run jupyter notebook the sagemath kernel appears in the drop down list

edit flag offensive delete link more


That is really interesting, if it works.

kcrisman gravatar imagekcrisman ( 2016-03-10 08:44:56 -0500 )edit

In archlinux the kernel is in /usr/share/jupyter/kernels/sagemath/

EduardoJV gravatar imageEduardoJV ( 2016-07-07 20:08:10 -0500 )edit

answered 2016-03-09 23:52:12 -0500

Note that Sage also ships the Jupyter notebook.

So another way to go is to run

sage -n jupyter

which will launch the Jupyter notebook, with new notebook files defaulting to the SageMath kernel.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-03-08 19:42:59 -0500

Seen: 1,579 times

Last updated: Mar 09 '16