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

skip lines that have %matplotlib #6459

Merged
merged 3 commits into from
May 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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