Creating Thumbnail Galleries¶
Inspired by Sphinx-Gallery, you can create thumbnail galleries from a list of Jupyter notebooks (or other Sphinx source files).
nbsphinx provides CSS styles for galleries, but like all styles you can tweak them with your own CSS files loaded via html_css_files. If you want to disable all the original styling, you can create a file named
nbsphinx-gallery.css somewhere in your html_static_path, which will replace the original CSS file
(adding it to
html_css_files is not necessary in this case, because it is automatically added by
The following sections present two different ways of creating thumbnail galleries in Jupyter notebooks and show how thumbnail images can be selected. Thumbnail galleries can also be created in reStructuredText files.