File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 2
2
# Refer to ./jenkins/build.sh for tutorial build instructions
3
3
4
4
sphinx == 5.3.0
5
- sphinx-gallery == 0.11 .1
5
+ sphinx-gallery == 0.17 .1
6
6
sphinx-reredirects == 0.1.4
7
7
sphinx-design == 0.4.0
8
8
docutils == 0.16
@@ -31,7 +31,8 @@ pytorch-lightning
31
31
torchx
32
32
torchrl == 0.7.2
33
33
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
35
36
nbformat >= 5.9.2
36
37
datasets
37
38
transformers
Original file line number Diff line number Diff line change @@ -85,7 +85,10 @@ def wrapper(*args, **kwargs):
85
85
raise RuntimeError (f"Error in subprocess: { result } " )
86
86
return wrapper
87
87
88
- sphinx_gallery .gen_rst .generate_file_rst = call_in_subprocess (sphinx_gallery .gen_rst .generate_file_rst )
88
+ # Windows does not support multiprocessing with fork and mac has issues with
89
+ # fork so we do not monkey patch sphinx gallery to run in subprocesses.
90
+ if os .getenv ("TUTORIALS_ISOLATE_BUILD" , "1" ) == "1" and not sys .platform .startswith ("win" ) and not sys .platform == "darwin" :
91
+ sphinx_gallery .gen_rst .generate_file_rst = call_in_subprocess (sphinx_gallery .gen_rst .generate_file_rst )
89
92
90
93
try :
91
94
import torchvision
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ def run(self):
88
88
if 'intro' in self .options :
89
89
intro = self .options ['intro' ][:195 ] + '...'
90
90
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 )
92
93
intro , _ = sphinx_gallery .gen_rst .extract_intro_and_title (abs_fname , blocks [0 ][1 ])
93
94
94
95
thumbnail_rst = ''
You can’t perform that action at this time.
0 commit comments