Skip to content

Commit

Permalink
Add example gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegrabowski committed Jan 8, 2025
1 parent b27e7d6 commit 4c5102b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate_gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def gen_previews(self):
def main(app):
logger.info("Starting thumbnail extractor.")

working_dir = Path.getcwd()
working_dir = Path.cwd()
os.chdir(app.builder.srcdir)

file = [HEAD]
Expand All @@ -157,7 +157,7 @@ def main(app):
for descr in external_nbs[folder]
]

nb_paths = sorted(Path.glob(f"gallery/{folder}/*.ipynb"))
nb_paths = sorted(Path("gallery", "folder").glob("*.ipynb"))

for nb_path in nb_paths:
nbg = NotebookGenerator(
Expand Down

0 comments on commit 4c5102b

Please sign in to comment.