ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 07 Jul 2016 20:08:10 -0500Integrate SAGE Jupyter Notebook in Anaconda Python Distributionhttp://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.
Tue, 08 Mar 2016 19:42:59 -0600http://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>
http://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 08:53:55 -0600http://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?comment=32747#post-id-32747Answer 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>
http://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 09:28:24 -0600http://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?answer=32757#post-id-32757Comment 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>
http://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/Thu, 07 Jul 2016 20:08:10 -0500http://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?comment=34057#post-id-34057Comment 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>
http://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 08:44:56 -0600http://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?comment=32773#post-id-32773Answer 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>
http://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.Wed, 09 Mar 2016 23:52:12 -0600http://ask.sagemath.org/question/32741/integrate-sage-jupyter-notebook-in-anaconda-python-distribution/?answer=32767#post-id-32767