Ask Your Question
1

Integrate SAGE Jupyter Notebook in Anaconda Python Distribution

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

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

Comments

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 http://ask.sagemath.org/question/2441... but I'm not an expert on distributions by any means.

kcrisman gravatar imagekcrisman ( 2016-03-09 15:53:55 +0100 )edit

2 Answers

Sort by ยป oldest newest most voted
1

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

EduardoJV gravatar image

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

Solved!

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

Comments

That is really interesting, if it works.

kcrisman gravatar imagekcrisman ( 2016-03-10 15:44:56 +0100 )edit
1

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

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

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

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

Stats

Asked: 2016-03-09 02:42:59 +0100

Seen: 8,160 times

Last updated: Mar 10 '16