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.Sun, 25 Feb 2024 19:41:45 +0100show() for equations is not workinghttps://ask.sagemath.org/question/76217/show-for-equations-is-not-working/ This might be a recurrent problem with Sagemath since I saw a previous question and its answer. That answer does not work in my case.
I just want to see equations rendered since it is easier to see if they are correct. The previous answer told us to add a
sys. stdout.flush() command line after each show
1. import sys
2. sys.stdout.flush()
3. var("x y z ")
4. show(x**2)
This does not work in my system.
> Linux mp74207-MS-7A34 6.5.0-21-generic
> 21~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 9 13:32:52 UTC 2 x86_64
> x86_64 x86_64 GNU/Linux Ubuntu 22.04
I refreshed all packages containing Sagemath 9.5 (that is the current version available in the repository).
> apt search sagemath Sorting... Done
> Full Text Search... Done
> cantor-backend-sage/jammy
> 4:21.12.3-0ubuntu1 amd64 Sage
> backend for Cantor
>
> libpynac-dev/jammy 0.7.29-2 amd64
> Engine for symbolic geometric calculus
> for Python (development files)
>
> libpynac18py3/jammy 0.7.29-2 amd64
> Engine for symbolic geometric calculus
> for Python
>
> maxima-sage/jammy,now 5.45.1-2 amd64
> [installed,automatic] Computer
> algebra system -- base system
>
> maxima-sage-doc/jammy,jammy,now
> 5.45.1-2 all [installed,automatic] Computer algebra system --
> documentation
>
> maxima-sage-share/jammy,jammy,now
> 5.45.1-2 all [installed,automatic] Computer algebra system -- extra code
>
> python3-sage/jammy,now 9.5-4 amd64
> [installed,automatic] Open Source
> Mathematical Software - Python 3
> library
>
> python3-sagetex/jammy,jammy,now
> 3.6+ds-2 all [installed,automatic] Embed Sage code and plots into LaTeX
> -- Python 3
>
> rubiks/jammy 20070912-5build1 amd64
> Small collection of Rubik's cube
> solvers
>
> sagemath/jammy,jammy,now 9.5-4 all
> [installed] Open Source Mathematical
> Software
>
> sagemath-database-conway-polynomials/jammy,jammy,now
> 0.5-8 all [installed,automatic] Database of Conway polynomials
>
> sagemath-database-cremona-elliptic-curves/jammy,jammy
> 0~20191029-4 all Databases of
> elliptic curves over the rationals
>
> sagemath-database-elliptic-curves/jammy,jammy,now
> 0.8.1-5 all [installed,automatic] Databases for elliptic curves
>
> sagemath-database-graphs/jammy,jammy,now
> 20210214+dfsg-1 all
> [installed,automatic] Databases of
> graphs
>
> sagemath-database-mutually-combinatorial-designs/jammy,jammy,now 20140630-6 all [installed,automatic]
> Databases of combinatorial designs
>
> sagemath-database-polytopes/jammy,jammy,now
> 20170220-5 all [installed,automatic]
> Databases of polytopes
>
> sagemath-doc/jammy,jammy,now 9.5-4 all
> [installed,automatic] Open Source
> Mathematical Software - documentation
>
> sagemath-jupyter/jammy,jammy,now 9.5-4
> all [installed,automatic] Open
> Source Mathematical Software - Jupyter
> kernel
>
> sagetex/jammy,jammy,now 3.6+ds-2 all
> [installed,automatic] Embed Sage
> code and plots into LaTeX
>
> sagetex-doc/jammy,jammy 3.6+ds-2 all
> Embed Sage code and plots into LaTeX
> -- doc
Any help would be welcome.
Thanks
Sat, 24 Feb 2024 14:31:52 +0100https://ask.sagemath.org/question/76217/show-for-equations-is-not-working/Comment by vtibullo for <p>This might be a recurrent problem with Sagemath since I saw a previous question and its answer. That answer does not work in my case.</p>
<p>I just want to see equations rendered since it is easier to see if they are correct. The previous answer told us to add a
sys. stdout.flush() command line after each show</p>
<ol>
<li>import sys </li>
<li>sys.stdout.flush() </li>
<li>var("x y z ")</li>
<li>show(x**2)</li>
</ol>
<p>This does not work in my system. </p>
<blockquote>
<p>Linux mp74207-MS-7A34 6.5.0-21-generic
21~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 9 13:32:52 UTC 2 x86_64
x86_64 x86_64 GNU/Linux Ubuntu 22.04</p>
</blockquote>
<p>I refreshed all packages containing Sagemath 9.5 (that is the current version available in the repository).</p>
<blockquote>
<p>apt search sagemath Sorting... Done
Full Text Search... Done
cantor-backend-sage/jammy
4:21.12.3-0ubuntu1 amd64 Sage
backend for Cantor</p>
<p>libpynac-dev/jammy 0.7.29-2 amd64 <br>
Engine for symbolic geometric calculus
for Python (development files)</p>
<p>libpynac18py3/jammy 0.7.29-2 amd64 <br>
Engine for symbolic geometric calculus
for Python</p>
<p>maxima-sage/jammy,now 5.45.1-2 amd64
[installed,automatic] Computer
algebra system -- base system</p>
<p>maxima-sage-doc/jammy,jammy,now
5.45.1-2 all [installed,automatic] Computer algebra system --
documentation</p>
<p>maxima-sage-share/jammy,jammy,now
5.45.1-2 all [installed,automatic] Computer algebra system -- extra code</p>
<p>python3-sage/jammy,now 9.5-4 amd64
[installed,automatic] Open Source
Mathematical Software - Python 3
library</p>
<p>python3-sagetex/jammy,jammy,now
3.6+ds-2 all [installed,automatic] Embed Sage code and plots into LaTeX
-- Python 3</p>
<p>rubiks/jammy 20070912-5build1 amd64 <br>
Small collection of Rubik's cube
solvers</p>
<p>sagemath/jammy,jammy,now 9.5-4 all
[installed] Open Source Mathematical
Software</p>
<p>sagemath-database-conway-polynomials/jammy,jammy,now
0.5-8 all [installed,automatic] Database of Conway polynomials</p>
<p>sagemath-database-cremona-elliptic-curves/jammy,jammy
0~20191029-4 all Databases of
elliptic curves over the rationals</p>
<p>sagemath-database-elliptic-curves/jammy,jammy,now
0.8.1-5 all [installed,automatic] Databases for elliptic curves</p>
<p>sagemath-database-graphs/jammy,jammy,now
20210214+dfsg-1 all
[installed,automatic] Databases of
graphs</p>
<p>sagemath-database-mutually-combinatorial-designs/jammy,jammy,now 20140630-6 all [installed,automatic] <br>
Databases of combinatorial designs</p>
<p>sagemath-database-polytopes/jammy,jammy,now
20170220-5 all [installed,automatic] <br>
Databases of polytopes</p>
<p>sagemath-doc/jammy,jammy,now 9.5-4 all
[installed,automatic] Open Source
Mathematical Software - documentation</p>
<p>sagemath-jupyter/jammy,jammy,now 9.5-4
all [installed,automatic] Open
Source Mathematical Software - Jupyter
kernel</p>
<p>sagetex/jammy,jammy,now 3.6+ds-2 all
[installed,automatic] Embed Sage
code and plots into LaTeX</p>
<p>sagetex-doc/jammy,jammy 3.6+ds-2 all <br>
Embed Sage code and plots into LaTeX
-- doc</p>
</blockquote>
<p>Any help would be welcome.</p>
<p>Thanks</p>
https://ask.sagemath.org/question/76217/show-for-equations-is-not-working/?comment=76222#post-id-76222I use SageMath on Debian 12, the version is 9.5 and the MathJax display of expressions works without problems, so it is not a problem related to the old version.
What browser are you using? browser plugins blocking MathJax? Try in a guest browser profile.Sun, 25 Feb 2024 19:41:45 +0100https://ask.sagemath.org/question/76217/show-for-equations-is-not-working/?comment=76222#post-id-76222Comment by tolga for <p>This might be a recurrent problem with Sagemath since I saw a previous question and its answer. That answer does not work in my case.</p>
<p>I just want to see equations rendered since it is easier to see if they are correct. The previous answer told us to add a
sys. stdout.flush() command line after each show</p>
<ol>
<li>import sys </li>
<li>sys.stdout.flush() </li>
<li>var("x y z ")</li>
<li>show(x**2)</li>
</ol>
<p>This does not work in my system. </p>
<blockquote>
<p>Linux mp74207-MS-7A34 6.5.0-21-generic
21~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 9 13:32:52 UTC 2 x86_64
x86_64 x86_64 GNU/Linux Ubuntu 22.04</p>
</blockquote>
<p>I refreshed all packages containing Sagemath 9.5 (that is the current version available in the repository).</p>
<blockquote>
<p>apt search sagemath Sorting... Done
Full Text Search... Done
cantor-backend-sage/jammy
4:21.12.3-0ubuntu1 amd64 Sage
backend for Cantor</p>
<p>libpynac-dev/jammy 0.7.29-2 amd64 <br>
Engine for symbolic geometric calculus
for Python (development files)</p>
<p>libpynac18py3/jammy 0.7.29-2 amd64 <br>
Engine for symbolic geometric calculus
for Python</p>
<p>maxima-sage/jammy,now 5.45.1-2 amd64
[installed,automatic] Computer
algebra system -- base system</p>
<p>maxima-sage-doc/jammy,jammy,now
5.45.1-2 all [installed,automatic] Computer algebra system --
documentation</p>
<p>maxima-sage-share/jammy,jammy,now
5.45.1-2 all [installed,automatic] Computer algebra system -- extra code</p>
<p>python3-sage/jammy,now 9.5-4 amd64
[installed,automatic] Open Source
Mathematical Software - Python 3
library</p>
<p>python3-sagetex/jammy,jammy,now
3.6+ds-2 all [installed,automatic] Embed Sage code and plots into LaTeX
-- Python 3</p>
<p>rubiks/jammy 20070912-5build1 amd64 <br>
Small collection of Rubik's cube
solvers</p>
<p>sagemath/jammy,jammy,now 9.5-4 all
[installed] Open Source Mathematical
Software</p>
<p>sagemath-database-conway-polynomials/jammy,jammy,now
0.5-8 all [installed,automatic] Database of Conway polynomials</p>
<p>sagemath-database-cremona-elliptic-curves/jammy,jammy
0~20191029-4 all Databases of
elliptic curves over the rationals</p>
<p>sagemath-database-elliptic-curves/jammy,jammy,now
0.8.1-5 all [installed,automatic] Databases for elliptic curves</p>
<p>sagemath-database-graphs/jammy,jammy,now
20210214+dfsg-1 all
[installed,automatic] Databases of
graphs</p>
<p>sagemath-database-mutually-combinatorial-designs/jammy,jammy,now 20140630-6 all [installed,automatic] <br>
Databases of combinatorial designs</p>
<p>sagemath-database-polytopes/jammy,jammy,now
20170220-5 all [installed,automatic] <br>
Databases of polytopes</p>
<p>sagemath-doc/jammy,jammy,now 9.5-4 all
[installed,automatic] Open Source
Mathematical Software - documentation</p>
<p>sagemath-jupyter/jammy,jammy,now 9.5-4
all [installed,automatic] Open
Source Mathematical Software - Jupyter
kernel</p>
<p>sagetex/jammy,jammy,now 3.6+ds-2 all
[installed,automatic] Embed Sage
code and plots into LaTeX</p>
<p>sagetex-doc/jammy,jammy 3.6+ds-2 all <br>
Embed Sage code and plots into LaTeX
-- doc</p>
</blockquote>
<p>Any help would be welcome.</p>
<p>Thanks</p>
https://ask.sagemath.org/question/76217/show-for-equations-is-not-working/?comment=76220#post-id-76220The version on the repository is rather old. I would suggest that you install the latest version using conda/mamba easily following [https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda](https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda)Sun, 25 Feb 2024 07:23:06 +0100https://ask.sagemath.org/question/76217/show-for-equations-is-not-working/?comment=76220#post-id-76220