IPython (Jupyter) notebook producing ghost line in

2020-02-04 07:03发布

问题:

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.

回答1:

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.