From 63c1d3157c884e18ecbee6b456ad5110ef09d42b Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Wed, 6 Dec 2023 21:56:56 +0300 Subject: [PATCH] Fix generate_gallery --- doc/gallery/_gallery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/gallery/_gallery.py b/doc/gallery/_gallery.py index 26b5cba83..705e64d6c 100644 --- a/doc/gallery/_gallery.py +++ b/doc/gallery/_gallery.py @@ -163,6 +163,6 @@ def generate_gallery() -> str: for fp in EXAMPLES_DIR.glob("*.ipynb") if not fp.name.endswith(".out.ipynb") ) - images = get_gallery_images(notebooks) + images = (str(img) for img in get_gallery_images(notebooks)) gallery = Div(list(images), Attr(classes=["gallery", "grid"])) return str(gallery)