Skip to content

Commit

Permalink
skip lines that have %matplotlib (apache#6459)
Browse files Browse the repository at this point in the history
  • Loading branch information
nswamy authored and Olivier committed May 30, 2017
1 parent d9be1c2 commit 345301d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/mxdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ('<div>' in l or '</div>' in l or
'<script>' in l or '</script>' in l or
Expand Down

0 comments on commit 345301d

Please sign in to comment.