diff --git a/.ci/docker/requirements.txt b/.ci/docker/requirements.txt index dae2606eaf7..58e73327ca7 100644 --- a/.ci/docker/requirements.txt +++ b/.ci/docker/requirements.txt @@ -2,7 +2,7 @@ # Refer to ./jenkins/build.sh for tutorial build instructions sphinx==5.3.0 -sphinx-gallery==0.11.1 +sphinx-gallery==0.17.1 sphinx-reredirects==0.1.4 sphinx-design==0.4.0 docutils==0.16 @@ -31,7 +31,8 @@ pytorch-lightning torchx torchrl==0.7.2 tensordict==0.7.2 -ax-platform>=0.4.0 +# For ax_multiobjective_nas_tutorial.py +ax-platform>=0.4.0,<0.5.0 nbformat>=5.9.2 datasets transformers diff --git a/.jenkins/build.sh b/.jenkins/build.sh index 9162152ff78..0187f6ba84c 100755 --- a/.jenkins/build.sh +++ b/.jenkins/build.sh @@ -152,11 +152,11 @@ elif [[ "${JOB_TYPE}" == "manager" ]]; then if [[ "$COMMIT_SOURCE" == "refs/heads/master" || "$COMMIT_SOURCE" == "refs/heads/main" ]]; then git clone https://github.com/pytorch/tutorials.git -b gh-pages gh-pages # Clean up directories that contain tutorials - + for dir in beginner intermediate prototype recipes advanced distributed vision text audio; do rm -rf "gh-pages/$dir" done - + cp -r docs/* gh-pages/ pushd gh-pages # DANGER! DO NOT REMOVE THE `set +x` SETTING HERE! diff --git a/custom_directives.py b/custom_directives.py index 388aa262e6e..d989723f190 100644 --- a/custom_directives.py +++ b/custom_directives.py @@ -88,7 +88,8 @@ def run(self): if 'intro' in self.options: intro = self.options['intro'][:195] + '...' else: - _, blocks = sphinx_gallery.gen_rst.split_code_and_text_blocks(abs_fname) + block_parser = sphinx_gallery.gen_rst.BlockParser(abs_fname, {"filetype_parsers": {}}) + _, blocks, _ = block_parser.split_code_and_text_blocks(abs_fname) intro, _ = sphinx_gallery.gen_rst.extract_intro_and_title(abs_fname, blocks[0][1]) thumbnail_rst = '' diff --git a/intermediate_source/ax_multiobjective_nas_tutorial.py b/intermediate_source/ax_multiobjective_nas_tutorial.py index 0f1ae21a556..95080004fd5 100644 --- a/intermediate_source/ax_multiobjective_nas_tutorial.py +++ b/intermediate_source/ax_multiobjective_nas_tutorial.py @@ -245,7 +245,7 @@ def _get_event_multiplexer_for_trial(self, trial): mul = event_multiplexer.EventMultiplexer(max_reload_threads=20) mul.AddRunsFromDirectory(Path(log_dir).joinpath(str(trial.index)).as_posix(), None) mul.Reload() - + return mul # This indicates whether the metric is queryable while the trial is