IPython(Jupyter)笔记本在所有方程中产生鬼线 [英] IPython (Jupyter) notebook producing ghost line in all equations

查看:135
本文介绍了IPython(Jupyter)笔记本在所有方程中产生鬼线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在新机器上使用pip安装了IPython / Jupyter(带有El Capitan的Macbook Air)。在我的一个相当简单的笔记本中(使用相同版本的整个堆栈创建)所有方程式(内联或非内联)突然在右侧有一条垂直线;与嵌入图像相同的高度。

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.

即使对于单个内联符号,例如 $ x $ ,情况也是如此。我没有复杂的宏或任何奇怪的LaTeX黑客攻击。

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.

有人知道吗?

这是一个图片。

推荐答案

这是Chrome中的一项变化,影响了Jupyter Notebook 4.1附带的MathJax 2.5。 Notebook 4.2将捆绑MathJax 2.6,它将解决此问题。在此期间,您可以告诉笔记本使用CDN中的最新MathJax,添加到〜/ .jupyter / jupyter_notebook_config.py

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.

这篇关于IPython(Jupyter)笔记本在所有方程中产生鬼线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆