Ask Your Question

Integrate SAGE Jupyter Notebook in Anaconda Python Distribution

asked 2016-03-09 02:42:59 +0200

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 15:53:55 +0200 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-03-09 16:28:24 +0200

EduardoJV gravatar image

updated 2016-03-09 16:30:05 +0200


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 15:44:56 +0200 )edit

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

EduardoJV gravatar imageEduardoJV ( 2016-07-08 03:08:10 +0200 )edit

answered 2016-03-10 06:52:12 +0200

slelievre gravatar image

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-09 02:42:59 +0200

Seen: 8,077 times

Last updated: Mar 10 '16