notebook: Mathjax js file not loading

I just loaded up a notebook that I last used with IPython < 4.0 and the MathJax math from SymPy output is failing to load. I’m getting this 404:

[W 16:47:28.747 NotebookApp] 404 GET /static/components/MathJax/jax/element/mml/optable/BasicLatin.js?rev=2.5.3 (127.0.0.1) 10.63ms referer=http://localhost:8888/notebooks/n01_dynamics_overview.ipynb

My previous method for installing MathJax was to do this:

In [1]: from IPython.external import mathjax
In [2]: mathjax.install_mathjax()

I see from some issues that that may not be correct anymore.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 6
  • Comments: 19 (7 by maintainers)

Commits related to this issue

Most upvoted comments

I have the same issue and solved it!

_404 GET /static/components/MathJax/jax/output/CommonHTML/fonts/TeX/fontdata.js?V=_2.7.5

go to MathJax release page download MathJax 2.7.5 copy the file in MathJax-2.7.5\jax just downloaded to python37\Lib\site-packages\notebook\ static\components\MathJax\jax and the notebook work well when renderer formula to svg!

image

For the error message which not refer to this path, just copy&paste with corresponding path.

I had this same problem:

404 GET /static/components/MathJax/jax/output/SVG/fonts/TeX/fontdata.js?rev=2.6.0

Workaround was to copy the ../TeX folder from another MathJax installation into the right spot in the notebook folder within site-packages.