From a71690af8e0936bb4d460729506f2a4c28d10f7c 2014-09-17 18:04:12 From: Thomas Kluyver Date: 2014-09-17 18:04:12 Subject: [PATCH] Use batchmode in latex_to_png_dvipng Latex is running into some unrelated error on my system, and making an unseen prompt for output, which results in a test hanging. This turns the hang into a failure. --- diff --git a/IPython/lib/latextools.py b/IPython/lib/latextools.py index c475ce4..1a25003 100644 --- a/IPython/lib/latextools.py +++ b/IPython/lib/latextools.py @@ -134,8 +134,8 @@ def latex_to_png_dvipng(s, wrap): with open(os.devnull, 'w') as devnull: subprocess.check_call( - ["latex", "-halt-on-error", tmpfile], cwd=workdir, - stdout=devnull, stderr=devnull) + ["latex", "-halt-on-error", "-interaction", "batchmode", tmpfile], + cwd=workdir, stdout=devnull, stderr=devnull) subprocess.check_call( ["dvipng", "-T", "tight", "-x", "1500", "-z", "9",