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, 30 Apr 2021 17:25:38 +0200Working through the Sage tutorial in a notebook error.https://ask.sagemath.org/question/56875/working-through-the-sage-tutorial-in-a-notebook-error/The Sage tutorial says:
> or from the Sage notebook (click Help, then click Tutorial to interactively work through the tutorial from within Sage).
but when I follow those directions I get:
```
404 : Not Found
You are requesting a page that does not exist!
```
The url in the new tab that appears is:
```
http://localhost:8888/kernelspecs/sagemath/doc/tutorial/index.html?v=20210430004223
```
And the notebook server shows:
```
[W 08:24:19.246 NotebookApp] 404 GET /kernelspecs/sagemath/doc/tutorial/index.html?v=20210430004223
(127.0.0.1) 19.26ms referer=http://localhost:8888/notebooks/Untitled2.ipynb
```
What am I doing wrong?Fri, 30 Apr 2021 09:31:51 +0200https://ask.sagemath.org/question/56875/working-through-the-sage-tutorial-in-a-notebook-error/Answer by slelievre for <p>The Sage tutorial says:</p>
<blockquote>
<p>or from the Sage notebook (click Help, then click Tutorial to interactively work through the tutorial from within Sage).</p>
</blockquote>
<p>but when I follow those directions I get:</p>
<p>```
404 : Not Found</p>
<p>You are requesting a page that does not exist!
```</p>
<p>The url in the new tab that appears is:</p>
<p><code>
http://localhost:8888/kernelspecs/sagemath/doc/tutorial/index.html?v=20210430004223
</code></p>
<p>And the notebook server shows:</p>
<p>```
[W 08:24:19.246 NotebookApp] 404 GET /kernelspecs/sagemath/doc/tutorial/index.html?v=20210430004223 </p>
<p>(127.0.0.1) 19.26ms referer=http://localhost:8888/notebooks/Untitled2.ipynb
```</p>
<p>What am I doing wrong?</p>
https://ask.sagemath.org/question/56875/working-through-the-sage-tutorial-in-a-notebook-error/?answer=56876#post-id-56876Unfortunately that does not work with Jupyter.
Making it work with Jupyter is tracked at
- [Sage Trac ticket 24593: Provide live documentation support in Jupyter](https://trac.sagemath.org/ticket/24593)
So far, live documentation only works with SageNB,
which was the "Sage notebook" before the Jupyter notebook.
Unfortunately, the SageNB notebook does not work with Python 3,
so it is only available with versions of SageMath compiled for Python 2.
Sage transitioned from Python 2 to Python 3 in the SageMath 8.x and 9.x versions:
- SageMath 8.x versions were primarily Python 2 based,
with growing Python 3 capability.
- SageMath 9.x versions were primarily Python 3 based,
with still an option to compile for Python 2 in SageMath 9.0 and 9.1.
Unless otherwise stated, SageMath binaries and installers are
- based on Python 2 up to SageMath 8.9,
- based on Python 3 starting from SageMath 9.0.
Building SageMath from source, there is a little more leeway:
- the late SageMath 8.x could also be compiled for Python 3 using
./configure --with-python=3
- the early SageMath 9.x could also be compiled for Python 2 using
./configure --with-python=2
On Windows, to get live documentation, use SageMath 8.9
(it can coexist with SageMath 9.2).
Download the installer from one of these locations (the installer you get from either location is the same):
- [Sage-Windows installer from GitHub](https://github.com/sagemath/sage-windows/releases)
- [Sage-Windows installer from the Sage download mirrors](https://www.sagemath.org/download-windows.html)
Let's hope "live Sage documentation for Jupyter" will be available
in a not too distant future.Fri, 30 Apr 2021 10:31:22 +0200https://ask.sagemath.org/question/56875/working-through-the-sage-tutorial-in-a-notebook-error/?answer=56876#post-id-56876Comment by Buk for <p>Unfortunately that does not work with Jupyter.</p>
<p>Making it work with Jupyter is tracked at</p>
<ul>
<li><a href="https://trac.sagemath.org/ticket/24593">Sage Trac ticket 24593: Provide live documentation support in Jupyter</a></li>
</ul>
<p>So far, live documentation only works with SageNB,
which was the "Sage notebook" before the Jupyter notebook.</p>
<p>Unfortunately, the SageNB notebook does not work with Python 3,
so it is only available with versions of SageMath compiled for Python 2.</p>
<p>Sage transitioned from Python 2 to Python 3 in the SageMath 8.x and 9.x versions:</p>
<ul>
<li>SageMath 8.x versions were primarily Python 2 based,
with growing Python 3 capability.</li>
<li>SageMath 9.x versions were primarily Python 3 based,
with still an option to compile for Python 2 in SageMath 9.0 and 9.1.</li>
</ul>
<p>Unless otherwise stated, SageMath binaries and installers are</p>
<ul>
<li>based on Python 2 up to SageMath 8.9,</li>
<li>based on Python 3 starting from SageMath 9.0.</li>
</ul>
<p>Building SageMath from source, there is a little more leeway:</p>
<ul>
<li><p>the late SageMath 8.x could also be compiled for Python 3 using</p>
<pre><code>./configure --with-python=3
</code></pre></li>
<li><p>the early SageMath 9.x could also be compiled for Python 2 using</p>
<pre><code>./configure --with-python=2
</code></pre></li>
</ul>
<p>On Windows, to get live documentation, use SageMath 8.9
(it can coexist with SageMath 9.2).</p>
<p>Download the installer from one of these locations (the installer you get from either location is the same):</p>
<ul>
<li><a href="https://github.com/sagemath/sage-windows/releases">Sage-Windows installer from GitHub</a></li>
<li><a href="https://www.sagemath.org/download-windows.html">Sage-Windows installer from the Sage download mirrors</a></li>
</ul>
<p>Let's hope "live Sage documentation for Jupyter" will be available
in a not too distant future.</p>
https://ask.sagemath.org/question/56875/working-through-the-sage-tutorial-in-a-notebook-error/?comment=56883#post-id-56883Thanks for the comprehensive explanation. 8.9 downloading now.
I'm looking forward to the live tutorial.Fri, 30 Apr 2021 17:25:38 +0200https://ask.sagemath.org/question/56875/working-through-the-sage-tutorial-in-a-notebook-error/?comment=56883#post-id-56883Comment by Buk for <p>Unfortunately that does not work with Jupyter.</p>
<p>Making it work with Jupyter is tracked at</p>
<ul>
<li><a href="https://trac.sagemath.org/ticket/24593">Sage Trac ticket 24593: Provide live documentation support in Jupyter</a></li>
</ul>
<p>So far, live documentation only works with SageNB,
which was the "Sage notebook" before the Jupyter notebook.</p>
<p>Unfortunately, the SageNB notebook does not work with Python 3,
so it is only available with versions of SageMath compiled for Python 2.</p>
<p>Sage transitioned from Python 2 to Python 3 in the SageMath 8.x and 9.x versions:</p>
<ul>
<li>SageMath 8.x versions were primarily Python 2 based,
with growing Python 3 capability.</li>
<li>SageMath 9.x versions were primarily Python 3 based,
with still an option to compile for Python 2 in SageMath 9.0 and 9.1.</li>
</ul>
<p>Unless otherwise stated, SageMath binaries and installers are</p>
<ul>
<li>based on Python 2 up to SageMath 8.9,</li>
<li>based on Python 3 starting from SageMath 9.0.</li>
</ul>
<p>Building SageMath from source, there is a little more leeway:</p>
<ul>
<li><p>the late SageMath 8.x could also be compiled for Python 3 using</p>
<pre><code>./configure --with-python=3
</code></pre></li>
<li><p>the early SageMath 9.x could also be compiled for Python 2 using</p>
<pre><code>./configure --with-python=2
</code></pre></li>
</ul>
<p>On Windows, to get live documentation, use SageMath 8.9
(it can coexist with SageMath 9.2).</p>
<p>Download the installer from one of these locations (the installer you get from either location is the same):</p>
<ul>
<li><a href="https://github.com/sagemath/sage-windows/releases">Sage-Windows installer from GitHub</a></li>
<li><a href="https://www.sagemath.org/download-windows.html">Sage-Windows installer from the Sage download mirrors</a></li>
</ul>
<p>Let's hope "live Sage documentation for Jupyter" will be available
in a not too distant future.</p>
https://ask.sagemath.org/question/56875/working-through-the-sage-tutorial-in-a-notebook-error/?comment=56878#post-id-56878I have 9.2 precompiled for windows.using Python 3.7.7
I do not know what SageNB notebook is? I have three items in the start menu:
- SageMath 9.2 ...........Opens a "console", which appears to be a REPL. If I type tutorial() here I get:
```
sage: tutorial()
sh: /opt/sagemath-9.2/local/bin/sage-native-execute: /bin/sh: bad interpreter: Bad address
```
- SageMath 9.2 shell ...Opens a "shell", with a unix style prompt -- no idea what that is for yet.
- SageMath 9.2 Notebook...Opens a "notebook server" and launches jupyter in a browser tab.
I don't need a unix shell; and the console doesn't seem to do anything useful.
On the other hand, the jupyter notebook environment is quite wonderful. Sham ethe tutorial doesn't work there :(Fri, 30 Apr 2021 11:28:59 +0200https://ask.sagemath.org/question/56875/working-through-the-sage-tutorial-in-a-notebook-error/?comment=56878#post-id-56878