36

I am working through Andrew Ng's machine learning course on Coursera using the Octave kernel for Jupyter and of course MathJax provides the equation rendering. This thin bar appears on the right side of every equation, and only in Chrome. Any thoughts on where in the stack things might be going wrong?

Screenshot of vertical line in Jupyter equations

Niels
  • 1,513
  • 1
  • 14
  • 21

3 Answers3

26

This is a known issue caused by Chrome changing its rounding behavior. It will be fixed in the next release. See https://github.com/mathjax/MathJax/issues/1300

Peter Krautzberger
  • 5,145
  • 19
  • 31
  • 2
    FYI the fix was released as part of MathJax v2.6.0 at the end of December 2015. – Peter Krautzberger Jan 20 '16 at 11:17
  • I had this same issue because I was using the 2.4 CDN URL. This URL gives you the latest version: https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML – jonbaldie Feb 06 '16 at 22:10
  • 1
    @minrk lists the solution to this related question here: http://stackoverflow.com/questions/35171714/ipython-jupyter-notebook-producing-ghost-line-in-all-equations – buruzaemon Feb 08 '16 at 01:41
  • 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:42
11

A quick and dirty method is right click one of them and select another renderer in Math Setting -> Math Renderer

Another method is create a bookmark of this link: javascript:$('.math>span').css("border-left-color","transparent") and click it in pages that use mathjax.

张实唯
  • 2,836
  • 13
  • 25
  • great, thank you. I am using jupyter via sagemath and this trailing bar was very annoying. now I just add a cell containing %%javascript and your js line and all is nice! – lehalle Aug 01 '16 at 09:19
4

If your MathJax is not the latest version, you can add this to the css style:

.MathJax nobr>span.math>span{border-left-width:0 !important};

then this problem can be solved.

Bravo Yeung
  • 8,654
  • 5
  • 38
  • 45