Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
skip lines that have %matplotlib (#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 c051db2 commit 3f19697
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 3f19697

Please sign in to comment.