File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,17 +16,9 @@ def _find_tutorial_notebooks():
1616 if not root .exists ():
1717 pytest .skip (f"Tutorials folder not found: { root } " )
1818
19- # Collect notebooks from the tutorials root (recursive ).
20- notebooks = set (root .rglob ("*.ipynb" ))
19+ # Collect all notebooks under doc/ tutorials (including any subfolders ).
20+ notebooks = sorted ( set (root .rglob ("*.ipynb" ) ))
2121
22- # Also explicitly include notebooks under an "advanced_tutorials" subfolder
23- # (in case they are separate or not picked up for some layouts). Use a set
24- # to deduplicate if the subfolder is already part of the root search.
25- advanced = root / "advanced_tutorials"
26- if advanced .exists ():
27- notebooks .update (advanced .rglob ("*.ipynb" ))
28-
29- notebooks = sorted (notebooks )
3022 if not notebooks :
3123 pytest .skip (f"No tutorial notebooks found in: { root } " )
3224 return notebooks
You can’t perform that action at this time.
0 commit comments