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, 13 Dec 2015 15:07:36 +0100MathJax stopped workinghttps://ask.sagemath.org/question/31404/mathjax-stopped-working/I created a couple of commands and realized they produce no output. If typesetting is turned to false, then the output is produced. When I go to the print tab, I get the following error:
File failed to load: localhost:8080/javascript/mathjax/jax/output/SVG/config.js
Why did it suddenly stop working?
I'm using Linux Mint 17.2, used the sagemath-upstream-binary package from the PPA. I'm using the Sage notebook. My commands are
x = var('x')
w = x^4 - (1+3*i)*x^3 - (2-4*i)*x^2 + (6-2*i)*x - 4 - 4*i
p = x^4 + (1-3*i)*x^3 - (4+3*i)*x^2 - (4-2*i)*x + 2*i
solve(w,x)
I tried using Jupyter but I get the following error while creating a notebook in Jupyter:
Failed to retrieve MathJax from '../nbextensions/mathjax/MathJax.js'
although I have MathJax installed locally in /usr/share/javascript/mathjax and in /usr/lib/sagemath/local/share/mathjaxTue, 08 Dec 2015 09:00:37 +0100https://ask.sagemath.org/question/31404/mathjax-stopped-working/Comment by tmonteil for <p>I created a couple of commands and realized they produce no output. If typesetting is turned to false, then the output is produced. When I go to the print tab, I get the following error:</p>
<pre><code>File failed to load: localhost:8080/javascript/mathjax/jax/output/SVG/config.js
</code></pre>
<p>Why did it suddenly stop working?</p>
<p>I'm using Linux Mint 17.2, used the sagemath-upstream-binary package from the PPA. I'm using the Sage notebook. My commands are</p>
<pre><code>x = var('x')
w = x^4 - (1+3*i)*x^3 - (2-4*i)*x^2 + (6-2*i)*x - 4 - 4*i
p = x^4 + (1-3*i)*x^3 - (4+3*i)*x^2 - (4-2*i)*x + 2*i
solve(w,x)
</code></pre>
<p>I tried using Jupyter but I get the following error while creating a notebook in Jupyter:</p>
<pre><code> Failed to retrieve MathJax from '../nbextensions/mathjax/MathJax.js'
</code></pre>
<p>although I have MathJax installed locally in /usr/share/javascript/mathjax and in /usr/lib/sagemath/local/share/mathjax</p>
https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31405#post-id-31405It is hard to tell, could you please give us some informations so that we can try to reproduce it:
- which version of Sage did you use ?
- which OS ?
- did you install Sage from the binaries, and which ones ?
- did you compile Sage ?
- which notebook did you use (Sage notebook or jupyter notebook) ?
- which command did you type precisely to get the error ?
- ... ?Tue, 08 Dec 2015 09:18:53 +0100https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31405#post-id-31405Answer by slelievre for <p>I created a couple of commands and realized they produce no output. If typesetting is turned to false, then the output is produced. When I go to the print tab, I get the following error:</p>
<pre><code>File failed to load: localhost:8080/javascript/mathjax/jax/output/SVG/config.js
</code></pre>
<p>Why did it suddenly stop working?</p>
<p>I'm using Linux Mint 17.2, used the sagemath-upstream-binary package from the PPA. I'm using the Sage notebook. My commands are</p>
<pre><code>x = var('x')
w = x^4 - (1+3*i)*x^3 - (2-4*i)*x^2 + (6-2*i)*x - 4 - 4*i
p = x^4 + (1-3*i)*x^3 - (4+3*i)*x^2 - (4-2*i)*x + 2*i
solve(w,x)
</code></pre>
<p>I tried using Jupyter but I get the following error while creating a notebook in Jupyter:</p>
<pre><code> Failed to retrieve MathJax from '../nbextensions/mathjax/MathJax.js'
</code></pre>
<p>although I have MathJax installed locally in /usr/share/javascript/mathjax and in /usr/lib/sagemath/local/share/mathjax</p>
https://ask.sagemath.org/question/31404/mathjax-stopped-working/?answer=31490#post-id-31490This looks very similar to the problem with MathJax that was discussed
in [this sage-devel thread](https://groups.google.com/d/topic/sage-devel/s-wvKC4BrV8/discussion).
Could you try the hints suggested there, and report here?Fri, 11 Dec 2015 22:14:54 +0100https://ask.sagemath.org/question/31404/mathjax-stopped-working/?answer=31490#post-id-31490Comment by marmistrz for <p>This looks very similar to the problem with MathJax that was discussed
in <a href="https://groups.google.com/d/topic/sage-devel/s-wvKC4BrV8/discussion">this sage-devel thread</a>.</p>
<p>Could you try the hints suggested there, and report here?</p>
https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31524#post-id-31524No success here. Sage 6.9 was my first installSat, 12 Dec 2015 19:38:08 +0100https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31524#post-id-31524Answer by marmistrz for <p>I created a couple of commands and realized they produce no output. If typesetting is turned to false, then the output is produced. When I go to the print tab, I get the following error:</p>
<pre><code>File failed to load: localhost:8080/javascript/mathjax/jax/output/SVG/config.js
</code></pre>
<p>Why did it suddenly stop working?</p>
<p>I'm using Linux Mint 17.2, used the sagemath-upstream-binary package from the PPA. I'm using the Sage notebook. My commands are</p>
<pre><code>x = var('x')
w = x^4 - (1+3*i)*x^3 - (2-4*i)*x^2 + (6-2*i)*x - 4 - 4*i
p = x^4 + (1-3*i)*x^3 - (4+3*i)*x^2 - (4-2*i)*x + 2*i
solve(w,x)
</code></pre>
<p>I tried using Jupyter but I get the following error while creating a notebook in Jupyter:</p>
<pre><code> Failed to retrieve MathJax from '../nbextensions/mathjax/MathJax.js'
</code></pre>
<p>although I have MathJax installed locally in /usr/share/javascript/mathjax and in /usr/lib/sagemath/local/share/mathjax</p>
https://ask.sagemath.org/question/31404/mathjax-stopped-working/?answer=31541#post-id-31541I found the root of the problem.
While browsing the net I switched the MathJax renderer to SVG. But only my global MathJax installation has the SVG renderer, the shipped version lacks it.
After changing the renderer to HTML/CSS, the problem disappeared.
I'll file a bug in trac. And for the Jupyter problem, I'll open a new questionSun, 13 Dec 2015 09:08:10 +0100https://ask.sagemath.org/question/31404/mathjax-stopped-working/?answer=31541#post-id-31541Comment by tmonteil for <p>I found the root of the problem.</p>
<p>While browsing the net I switched the MathJax renderer to SVG. But only my global MathJax installation has the SVG renderer, the shipped version lacks it.</p>
<p>After changing the renderer to HTML/CSS, the problem disappeared.</p>
<p>I'll file a bug in trac. And for the Jupyter problem, I'll open a new question</p>
https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31549#post-id-31549I edited my answer to answer this part of the problem.Sun, 13 Dec 2015 14:48:31 +0100https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31549#post-id-31549Answer by tmonteil for <p>I created a couple of commands and realized they produce no output. If typesetting is turned to false, then the output is produced. When I go to the print tab, I get the following error:</p>
<pre><code>File failed to load: localhost:8080/javascript/mathjax/jax/output/SVG/config.js
</code></pre>
<p>Why did it suddenly stop working?</p>
<p>I'm using Linux Mint 17.2, used the sagemath-upstream-binary package from the PPA. I'm using the Sage notebook. My commands are</p>
<pre><code>x = var('x')
w = x^4 - (1+3*i)*x^3 - (2-4*i)*x^2 + (6-2*i)*x - 4 - 4*i
p = x^4 + (1-3*i)*x^3 - (4+3*i)*x^2 - (4-2*i)*x + 2*i
solve(w,x)
</code></pre>
<p>I tried using Jupyter but I get the following error while creating a notebook in Jupyter:</p>
<pre><code> Failed to retrieve MathJax from '../nbextensions/mathjax/MathJax.js'
</code></pre>
<p>although I have MathJax installed locally in /usr/share/javascript/mathjax and in /usr/lib/sagemath/local/share/mathjax</p>
https://ask.sagemath.org/question/31404/mathjax-stopped-working/?answer=31462#post-id-31462It is hard to help without the same configuration.
It worked with the Sage notebook, right ? If you try again with Sage notebook, does it work ?
Do you use the Jupyter shipped with Sage ?
If you open jupyter notebook and create a new notebook and type in the first cell:
%display typeset
and on the second:
sqrt(2)
what do you see ?
If you open a terminal and type the following commands, what do you get:
ls -l /usr/lib/sagemath/local/share
ls -l /usr/lib/sagemath/local/share/jupyter/nbextensions
ls -l /usr/lib/sagemath/local/share/mathjax
**EDIT:**
To answer the problem you had with the Sage notebook, the shipped version is stripped so that it is smaller to download, so indeed the SVG rendering is disabled. If you want to use your system's mathjax in Sage, you can do the following:
cd /usr/lib/sagemath/local/share
sudo mv mathjax mathjax_stripped
sudo ln -s /usr/share/javascript/mathjax mathjaxThu, 10 Dec 2015 11:50:58 +0100https://ask.sagemath.org/question/31404/mathjax-stopped-working/?answer=31462#post-id-31462Comment by marmistrz for <p>It is hard to help without the same configuration.</p>
<p>It worked with the Sage notebook, right ? If you try again with Sage notebook, does it work ?</p>
<p>Do you use the Jupyter shipped with Sage ?</p>
<p>If you open jupyter notebook and create a new notebook and type in the first cell:</p>
<pre><code>%display typeset
</code></pre>
<p>and on the second:</p>
<pre><code>sqrt(2)
</code></pre>
<p>what do you see ?</p>
<p>If you open a terminal and type the following commands, what do you get:</p>
<pre><code>ls -l /usr/lib/sagemath/local/share
ls -l /usr/lib/sagemath/local/share/jupyter/nbextensions
ls -l /usr/lib/sagemath/local/share/mathjax
</code></pre>
<p><strong>EDIT:</strong></p>
<p>To answer the problem you had with the Sage notebook, the shipped version is stripped so that it is smaller to download, so indeed the SVG rendering is disabled. If you want to use your system's mathjax in Sage, you can do the following:</p>
<pre><code>cd /usr/lib/sagemath/local/share
sudo mv mathjax mathjax_stripped
sudo ln -s /usr/share/javascript/mathjax mathjax
</code></pre>
https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31522#post-id-31522It initially worked with the Sage notebook. Suddenly the notebook ceased to work. I tried the Jupyter notebook afterwards.
When I open the jupyter notebook, nothing is printed at all. Even if I remove the `%display typeset` lineSat, 12 Dec 2015 19:29:48 +0100https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31522#post-id-31522Comment by marmistrz for <p>It is hard to help without the same configuration.</p>
<p>It worked with the Sage notebook, right ? If you try again with Sage notebook, does it work ?</p>
<p>Do you use the Jupyter shipped with Sage ?</p>
<p>If you open jupyter notebook and create a new notebook and type in the first cell:</p>
<pre><code>%display typeset
</code></pre>
<p>and on the second:</p>
<pre><code>sqrt(2)
</code></pre>
<p>what do you see ?</p>
<p>If you open a terminal and type the following commands, what do you get:</p>
<pre><code>ls -l /usr/lib/sagemath/local/share
ls -l /usr/lib/sagemath/local/share/jupyter/nbextensions
ls -l /usr/lib/sagemath/local/share/mathjax
</code></pre>
<p><strong>EDIT:</strong></p>
<p>To answer the problem you had with the Sage notebook, the shipped version is stripped so that it is smaller to download, so indeed the SVG rendering is disabled. If you want to use your system's mathjax in Sage, you can do the following:</p>
<pre><code>cd /usr/lib/sagemath/local/share
sudo mv mathjax mathjax_stripped
sudo ln -s /usr/share/javascript/mathjax mathjax
</code></pre>
https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31523#post-id-31523And the output is http://paste.ubuntu.com/13974887/Sat, 12 Dec 2015 19:31:11 +0100https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31523#post-id-31523Comment by tmonteil for <p>It is hard to help without the same configuration.</p>
<p>It worked with the Sage notebook, right ? If you try again with Sage notebook, does it work ?</p>
<p>Do you use the Jupyter shipped with Sage ?</p>
<p>If you open jupyter notebook and create a new notebook and type in the first cell:</p>
<pre><code>%display typeset
</code></pre>
<p>and on the second:</p>
<pre><code>sqrt(2)
</code></pre>
<p>what do you see ?</p>
<p>If you open a terminal and type the following commands, what do you get:</p>
<pre><code>ls -l /usr/lib/sagemath/local/share
ls -l /usr/lib/sagemath/local/share/jupyter/nbextensions
ls -l /usr/lib/sagemath/local/share/mathjax
</code></pre>
<p><strong>EDIT:</strong></p>
<p>To answer the problem you had with the Sage notebook, the shipped version is stripped so that it is smaller to download, so indeed the SVG rendering is disabled. If you want to use your system's mathjax in Sage, you can do the following:</p>
<pre><code>cd /usr/lib/sagemath/local/share
sudo mv mathjax mathjax_stripped
sudo ln -s /usr/share/javascript/mathjax mathjax
</code></pre>
https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31552#post-id-31552Thanks fot the output, i will answer this issue on [this question](http://ask.sagemath.org/question/31542/jupyter-doesnt-use-the-built-in-mathjax/)Sun, 13 Dec 2015 15:07:36 +0100https://ask.sagemath.org/question/31404/mathjax-stopped-working/?comment=31552#post-id-31552