24

I installed IPython / Jupyter using pip on a new machine (Macbook Air with El Capitan). In a fairly simple notebook of mine (created with the same version of the whole stack) all equations, inline or not, suddenly have a vertical line on the right hand side; same height as the embedded image.

This is the case even for a single inline symbol such as $x$. I have no complicated macros or any weird LaTeX hacking going on.

Does anybody know this?

Here's a picture.

enter image description here

Thomas K
  • 39,200
  • 7
  • 84
  • 86
DCS
  • 3,354
  • 1
  • 24
  • 40
  • I've been experiencing the same issue and was just about to post the same question. If you don't mind slightly less pretty mathematics output, you can right-click any of the equations and then select Math Settings > Math Renderer > Fast HTML. In general it looks fine but becomes clunky with matrix expressions and some inline expressions with \displaystyle set, for example. I'll be following this thread in the hopes of a better solution though! – Richard Ambler Feb 05 '16 at 12:39

1 Answers1

44

This is a change in Chrome, affecting MathJax 2.5, which ships with Jupyter Notebook 4.1. Notebook 4.2 will bundle MathJax 2.6, which will fix this problem. In the meantime, you can tell the notebook to use latest MathJax from the CDN, by adding to ~/.jupyter/jupyter_notebook_config.py:

c.NotebookApp.mathjax_url = "https://cdn.mathjax.org/mathjax/latest/MathJax.js"

Other browsers do not appear to be affected.

minrk
  • 37,545
  • 9
  • 92
  • 87
  • 9
    ...And if such a file does not exist, first run `jupyter notebook --generate-config` . (See http://jupyter-notebook.readthedocs.io/en/latest/config.html ) – Steve Byrnes May 15 '16 at 02:50
  • Just had the same problem with Safari. It is solved by the very same procedure. Thanks – iacolippo Feb 10 '17 at 09:31
  • Note from the future: cdn.mathjax.org is nearing its end-of-life, check https://www.mathjax.org/cdn-shutting-down/ for migration tips. – Peter Krautzberger Apr 12 '17 at 08:41