Ask Your Question
1

Integrate SAGE Jupyter Notebook in Anaconda Python Distribution

asked 9 years ago

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.

Preview: (hide)

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 ( 9 years ago )

2 Answers

Sort by » oldest newest most voted
1

answered 9 years ago

EduardoJV gravatar image

updated 9 years ago

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

Preview: (hide)
link

Comments

That is really interesting, if it works.

kcrisman gravatar imagekcrisman ( 9 years ago )
1

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

EduardoJV gravatar imageEduardoJV ( 8 years ago )
0

answered 9 years ago

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.

Preview: (hide)
link

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: 9 years ago

Seen: 8,306 times

Last updated: Mar 10 '16