Skip to content

Commit 876c563

Browse files
clee2000svekars
andauthored
[CI] Upgrade sphinx-gallery 0.11.1 -> 0.17.1 (#3449)
clee2000 Member clee2000 commented 11 hours ago The isolated subprocess build was preventing errors from surfacing, but upgrading to 0.17.1 (which has its own parallelization with joblib) makes it surface correctly I only found 1 failure which was ax_multiobjective_nas_tutorial and it was because the ax-platform package got a new version that removed something it was using, so I pinned that too We are also using split_code_and_text_blocks, which got moved somewhere else, so I changed that too, hopefully it is correct Testing: on a different PR, I raised runtimeerror in one of the tutorials and saw that the error was surfaced Co-authored-by: Svetlana Karslioglu <[email protected]>
1 parent fee83dd commit 876c563

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.ci/docker/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Refer to ./jenkins/build.sh for tutorial build instructions
33

44
sphinx==5.3.0
5-
sphinx-gallery==0.11.1
5+
sphinx-gallery==0.17.1
66
sphinx-reredirects==0.1.4
77
sphinx-design==0.4.0
88
docutils==0.16
@@ -31,7 +31,8 @@ pytorch-lightning
3131
torchx
3232
torchrl==0.7.2
3333
tensordict==0.7.2
34-
ax-platform>=0.4.0
34+
# For ax_multiobjective_nas_tutorial.py
35+
ax-platform>=0.4.0,<0.5.0
3536
nbformat>=5.9.2
3637
datasets
3738
transformers

custom_directives.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ def run(self):
8888
if 'intro' in self.options:
8989
intro = self.options['intro'][:195] + '...'
9090
else:
91-
_, blocks = sphinx_gallery.gen_rst.split_code_and_text_blocks(abs_fname)
91+
block_parser = sphinx_gallery.gen_rst.BlockParser(abs_fname, {"filetype_parsers": {}})
92+
_, blocks, _ = block_parser.split_code_and_text_blocks(abs_fname)
9293
intro, _ = sphinx_gallery.gen_rst.extract_intro_and_title(abs_fname, blocks[0][1])
9394

9495
thumbnail_rst = ''

0 commit comments

Comments
 (0)