ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 08 Jul 2016 03:08:10 +0200Integrate SAGE Jupyter Notebook in Anaconda Python Distributionhttps://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/ 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.
Wed, 09 Mar 2016 02:42:59 +0100https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/Comment by kcrisman for <p>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.</p>
<p>I am using the Anaconda python distribution in Ubuntu Linux.</p>
<p>Thanks and sorry for my english, i know it is really bad.</p>
https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?comment=32747#post-id-32747You 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/24419/calling-sage-from-python/ but I'm not an expert on distributions by any means.Wed, 09 Mar 2016 15:53:55 +0100https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?comment=32747#post-id-32747Answer by slelievre for <p>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.</p>
<p>I am using the Anaconda python distribution in Ubuntu Linux.</p>
<p>Thanks and sorry for my english, i know it is really bad.</p>
https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?answer=32767#post-id-32767Note 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.Thu, 10 Mar 2016 06:52:12 +0100https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?answer=32767#post-id-32767Answer by EduardoJV for <p>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.</p>
<p>I am using the Anaconda python distribution in Ubuntu Linux.</p>
<p>Thanks and sorry for my english, i know it is really bad.</p>
https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?answer=32757#post-id-32757 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 listWed, 09 Mar 2016 16:28:24 +0100https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?answer=32757#post-id-32757Comment by kcrisman for <p>Solved!</p>
<p>I solved my problem. I have copied the kernel from <code>/usr/lib/sagemath/local/share/jupyter/kernels/</code> to <code>/home/eduardo/.local/share/jupyter/kernels/</code> and works fine. It still use the python distribution that come with sage but when i run <code>jupyter notebook</code> the sagemath kernel appears in the drop down list</p>
https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?comment=32773#post-id-32773That is really interesting, if it works.Thu, 10 Mar 2016 15:44:56 +0100https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?comment=32773#post-id-32773Comment by EduardoJV for <p>Solved!</p>
<p>I solved my problem. I have copied the kernel from <code>/usr/lib/sagemath/local/share/jupyter/kernels/</code> to <code>/home/eduardo/.local/share/jupyter/kernels/</code> and works fine. It still use the python distribution that come with sage but when i run <code>jupyter notebook</code> the sagemath kernel appears in the drop down list</p>
https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?comment=34057#post-id-34057In archlinux the kernel is in /usr/share/jupyter/kernels/sagemath/Fri, 08 Jul 2016 03:08:10 +0200https://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?comment=34057#post-id-34057