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 piiswrong committed May 26, 2017
1 parent 9828a46 commit da07062
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 da07062

Please sign in to comment.