Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa89777

Browse files
committed
Add SG contractual method per sphinx-gallery/sphinx-gallery#494
1 parent 2b03078 commit fa89777

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pyvista/sphinx_gallery.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77
import pyvista
88

99

10+
def _get_sg_image_scraper():
11+
"""Returns the callable scraper to be used by Sphinx-Gallery which allows
12+
PyVista users to just use strings as they already can for 'matplotlib' and
13+
'mayavi'. Details on this implementation can be found in
14+
`sphinx-gallery/sphinx-gallery/494`_
15+
16+
.. _sphinx-gallery/sphinx-gallery/494: https://github.com/sphinx-gallery/sphinx-gallery/pull/494
17+
"""
18+
return Scraper()
19+
20+
1021
class Scraper(object):
1122
"""
1223
Save ``pyvista.Plotter`` objects.

0 commit comments

Comments
 (0)