File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,11 @@ def _check_dependencies():
195
195
subsectionorder as gallery_order_subsectionorder )
196
196
from sphinxext .util import clear_basic_units , matplotlib_reduced_latex_scraper
197
197
198
+ if parse_version (sphinx_gallery .__version__ ) >= parse_version ('0.17.0' ):
199
+ sg_matplotlib_animations = (True , 'mp4' )
200
+ else :
201
+ sg_matplotlib_animations = True
202
+
198
203
# The following import is only necessary to monkey patch the signature later on
199
204
from sphinx_gallery import gen_rst
200
205
@@ -273,7 +278,7 @@ def tutorials_download_error(record):
273
278
'image_scrapers' : (matplotlib_reduced_latex_scraper , ),
274
279
'image_srcset' : ["2x" ],
275
280
'junit' : '../test-results/sphinx-gallery/junit.xml' if CIRCLECI else '' ,
276
- 'matplotlib_animations' : True ,
281
+ 'matplotlib_animations' : sg_matplotlib_animations ,
277
282
'min_reported_time' : 1 ,
278
283
'plot_gallery' : 'True' , # sphinx-gallery/913
279
284
'reference_url' : {'matplotlib' : None , 'mpl_toolkits' : None },
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ pydata-sphinx-theme~=0.15.0
18
18
mpl-sphinx-theme~=3.9.0
19
19
pyyaml
20
20
sphinxcontrib-svg2pdfconverter>=1.1.0
21
+ sphinxcontrib-video>=0.2.1
21
22
sphinx-copybutton
22
23
sphinx-design
23
24
sphinx-gallery[parallel]>=0.12.0
You can’t perform that action at this time.
0 commit comments