ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 24 May 2018 20:09:45 -0500sagews vs jupyter notebook, and choices of kernelshttps://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/I'm making a few notebooks for educational use and I'm looking for guidance as to what I should be using: a sage worksheet running Jupyter, or a Jupyter notebook. For the most part, I want users to be able to run existing Python programs.
(I also want them to run some Haskell programs, and for this, the choice is clearer: I want the Jupyter notebook because I can set the mode to Haskell.)
I don't see anything here that offers comparisons, and so here are some of the issues on my mind.
I find the Jupyter notebook cell system more to my liking than a sagews. I believe that users would also, but I have no real experience with that.
I think there's more documentation here for the sagews (right?), but there's more out there on the Jupyter notebook.
I'd like some support for simple tables containing text and numbers; nothing fancier. Is there a difference there?
A final issue: is there any difference in terms of displaying html, either in the application itself or in separate windows?
And on a related point: what is the difference between a sagews set up to run a Jupyter kernel via
py3 = jupyter("python3")
and one via
a3 = jupyter("anaconda3")
Is this an orthogonal issue, or is it related to my overall question?
Tue, 22 May 2018 12:39:58 -0500https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/Comment by Larry Moss for <p>I'm making a few notebooks for educational use and I'm looking for guidance as to what I should be using: a sage worksheet running Jupyter, or a Jupyter notebook. For the most part, I want users to be able to run existing Python programs. </p>
<p>(I also want them to run some Haskell programs, and for this, the choice is clearer: I want the Jupyter notebook because I can set the mode to Haskell.)</p>
<p>I don't see anything here that offers comparisons, and so here are some of the issues on my mind.</p>
<p>I find the Jupyter notebook cell system more to my liking than a sagews. I believe that users would also, but I have no real experience with that.</p>
<p>I think there's more documentation here for the sagews (right?), but there's more out there on the Jupyter notebook.</p>
<p>I'd like some support for simple tables containing text and numbers; nothing fancier. Is there a difference there?</p>
<p>A final issue: is there any difference in terms of displaying html, either in the application itself or in separate windows?</p>
<p>And on a related point: what is the difference between a sagews set up to run a Jupyter kernel via</p>
<p>py3 = jupyter("python3")</p>
<p>and one via </p>
<p>a3 = jupyter("anaconda3")</p>
<p>Is this an orthogonal issue, or is it related to my overall question?</p>
https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/?comment=42431#post-id-42431Thanks -- the point about one technology for my students is a good one.Thu, 24 May 2018 20:09:45 -0500https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/?comment=42431#post-id-42431Comment by nbruin for <p>I'm making a few notebooks for educational use and I'm looking for guidance as to what I should be using: a sage worksheet running Jupyter, or a Jupyter notebook. For the most part, I want users to be able to run existing Python programs. </p>
<p>(I also want them to run some Haskell programs, and for this, the choice is clearer: I want the Jupyter notebook because I can set the mode to Haskell.)</p>
<p>I don't see anything here that offers comparisons, and so here are some of the issues on my mind.</p>
<p>I find the Jupyter notebook cell system more to my liking than a sagews. I believe that users would also, but I have no real experience with that.</p>
<p>I think there's more documentation here for the sagews (right?), but there's more out there on the Jupyter notebook.</p>
<p>I'd like some support for simple tables containing text and numbers; nothing fancier. Is there a difference there?</p>
<p>A final issue: is there any difference in terms of displaying html, either in the application itself or in separate windows?</p>
<p>And on a related point: what is the difference between a sagews set up to run a Jupyter kernel via</p>
<p>py3 = jupyter("python3")</p>
<p>and one via </p>
<p>a3 = jupyter("anaconda3")</p>
<p>Is this an orthogonal issue, or is it related to my overall question?</p>
https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/?comment=42400#post-id-42400I think sagews is a cocalc-only thing. The cocalc software is free and open source and you can run your own, but I don't know how hard it is to do that in practice. Furthermore, the cocalc.com infrastructure is happy to work with jupyter notebooks (if you need that). There is a wider community of user and tools for jupyter notebooks, which might be a benefit. If you're going to need jupyter for Haskell anyway, the choice is pretty clear. Why burden your students with two technologies if they can get by with one? In terms of making kernels available: your choice if you want to install the Haskell kernel in sage's jupyter or if you want to install sage as a kernel (together with Haskell's) into another jupyter.Tue, 22 May 2018 15:53:40 -0500https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/?comment=42400#post-id-42400Answer by William Stein2 for <p>I'm making a few notebooks for educational use and I'm looking for guidance as to what I should be using: a sage worksheet running Jupyter, or a Jupyter notebook. For the most part, I want users to be able to run existing Python programs. </p>
<p>(I also want them to run some Haskell programs, and for this, the choice is clearer: I want the Jupyter notebook because I can set the mode to Haskell.)</p>
<p>I don't see anything here that offers comparisons, and so here are some of the issues on my mind.</p>
<p>I find the Jupyter notebook cell system more to my liking than a sagews. I believe that users would also, but I have no real experience with that.</p>
<p>I think there's more documentation here for the sagews (right?), but there's more out there on the Jupyter notebook.</p>
<p>I'd like some support for simple tables containing text and numbers; nothing fancier. Is there a difference there?</p>
<p>A final issue: is there any difference in terms of displaying html, either in the application itself or in separate windows?</p>
<p>And on a related point: what is the difference between a sagews set up to run a Jupyter kernel via</p>
<p>py3 = jupyter("python3")</p>
<p>and one via </p>
<p>a3 = jupyter("anaconda3")</p>
<p>Is this an orthogonal issue, or is it related to my overall question?</p>
https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/?answer=42425#post-id-42425I wrote sagews.
> I find the Jupyter notebook cell system more to my liking than a sagews. I believe that users would also, but I have no real experience with that.
Some users prefer one (much) more than the other, in each direction. It's a distribution.
My vision for the future of sagews vs jupyter is probably:
1. Make the sagews file format be compatible with Jupyter's.
2. Possibly create a sagews kernel, so it's possible to use Jupyter to work with a sagews. This would be necessary, since sagews have a lot of functionality/syntax that is not compatible with or supported by Sage's jupyter kernel.
3. Make it so the Sagews "single document" view versus the Jupyter "a whole bench of separate cells view" are just different ways of viewing the same notebook, and you can switch back and forth...
We have easy convertors from sagews to jupyter in cocalc, by the way.
- WilliamThu, 24 May 2018 13:49:33 -0500https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/?answer=42425#post-id-42425Comment by eric_g for <p>I wrote sagews. </p>
<blockquote>
<p>I find the Jupyter notebook cell system more to my liking than a sagews. I believe that users would also, but I have no real experience with that.</p>
</blockquote>
<p>Some users prefer one (much) more than the other, in each direction. It's a distribution. </p>
<p>My vision for the future of sagews vs jupyter is probably:</p>
<ol>
<li>Make the sagews file format be compatible with Jupyter's.</li>
<li>Possibly create a sagews kernel, so it's possible to use Jupyter to work with a sagews. This would be necessary, since sagews have a lot of functionality/syntax that is not compatible with or supported by Sage's jupyter kernel.</li>
<li>Make it so the Sagews "single document" view versus the Jupyter "a whole bench of separate cells view" are just different ways of viewing the same notebook, and you can switch back and forth...</li>
</ol>
<p>We have easy convertors from sagews to jupyter in cocalc, by the way.</p>
<ul>
<li>William</li>
</ul>
https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/?comment=42428#post-id-42428All this looks very promising!Thu, 24 May 2018 16:46:30 -0500https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/?comment=42428#post-id-42428Answer by eric_g for <p>I'm making a few notebooks for educational use and I'm looking for guidance as to what I should be using: a sage worksheet running Jupyter, or a Jupyter notebook. For the most part, I want users to be able to run existing Python programs. </p>
<p>(I also want them to run some Haskell programs, and for this, the choice is clearer: I want the Jupyter notebook because I can set the mode to Haskell.)</p>
<p>I don't see anything here that offers comparisons, and so here are some of the issues on my mind.</p>
<p>I find the Jupyter notebook cell system more to my liking than a sagews. I believe that users would also, but I have no real experience with that.</p>
<p>I think there's more documentation here for the sagews (right?), but there's more out there on the Jupyter notebook.</p>
<p>I'd like some support for simple tables containing text and numbers; nothing fancier. Is there a difference there?</p>
<p>A final issue: is there any difference in terms of displaying html, either in the application itself or in separate windows?</p>
<p>And on a related point: what is the difference between a sagews set up to run a Jupyter kernel via</p>
<p>py3 = jupyter("python3")</p>
<p>and one via </p>
<p>a3 = jupyter("anaconda3")</p>
<p>Is this an orthogonal issue, or is it related to my overall question?</p>
https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/?answer=42399#post-id-42399The Jupyter notebook is becoming the default notebook for Sage, as you can see by launching Sage in notebook mode via `sage --notebook` or `sage -n`. So definitely, I would recommend using Jupyter. Tue, 22 May 2018 15:22:01 -0500https://ask.sagemath.org/question/42394/sagews-vs-jupyter-notebook-and-choices-of-kernels/?answer=42399#post-id-42399