Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IPython (Jupyter) notebook producing ghost line in all equations

Tags:

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

like image 509
DCS Avatar asked Feb 03 '16 08:02

DCS


People also ask

How do you stop a line in a Jupyter Notebook?

Press esc and then double-press 0. Also try pressing h-key to check out other shortcuts. But if you just want to interrupt the kernel you can do double-press i.

Why is there a * in Jupyter Notebook?

This means that your kernel is busy. If you want to interrupt/stop the execution, go to the menu Kernel and click Interrupt. If it doesn't work, click Restart. You need to go in a new cell and press Shift + Enter to see if it worked.

What does %% capture do Jupyter?

Capturing Output With %%capture IPython has a cell magic, %%capture , which captures the stdout/stderr of a cell. With this magic you can discard these streams or store them in a variable. By default, %%capture discards these streams. This is a simple way to suppress unwanted output.

Is IPython obsolete?

The IPython console is now deprecated and if you want to start it, you'll need to use the Jupyter Console, which is a terminal-based console frontend for Jupyter kernels.


1 Answers

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.

like image 115
minrk Avatar answered Sep 22 '22 15:09

minrk