Skip to content

DOC: Suppress IPython output in examples and tutorials where not needed #23978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 23, 2022
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,
'subsection_order': gallery_order.sectionorder,
'thumbnail_size': (320, 224),
'within_subsection_order': gallery_order.subsectionorder,
'capture_repr': (),
}

if 'plot_gallery=0' in sys.argv:
Expand Down
1 change: 1 addition & 0 deletions tutorials/intermediate/artists.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class in the Matplotlib API, and the one you will be working with most

Try creating the figure below.
"""
# sphinx_gallery_capture_repr = ('__repr__',)

import numpy as np
import matplotlib.pyplot as plt
Expand Down
2 changes: 1 addition & 1 deletion tutorials/intermediate/autoscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# -------
# The default margin around the data limits is 5%:

ax.margins()
print(ax.margins())

###############################################################################
# The margins can be made larger using `~matplotlib.axes.Axes.margins`:
Expand Down