From 74f9061ca569c7aaa27468ca5c4b808a116f5954 Mon Sep 17 00:00:00 2001 From: Naveen Swamy Date: Thu, 25 May 2017 16:24:09 -0700 Subject: [PATCH] skip lines that have %matplotlib --- docs/mxdoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/mxdoc.py b/docs/mxdoc.py index 399384735686..535be5871bf3 100644 --- a/docs/mxdoc.py +++ b/docs/mxdoc.py @@ -214,7 +214,8 @@ def _get_source(lang, lines): out.append('') for l in lines: if in_code: - out.append(l) + if '%matplotlib' not in l: + out.append(l) else: if ('
' in l or '
' in l or '' in l or