This page was generated from doc/subdir/gallery.ipynb. Interactive online version: . Download notebook.

# 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 `nbsphinx`).

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.

- Gallery With Nested Documents
  - Last Image Is Used by Default
  - Using a Cell Tag to Select a Thumbnail
  - Using Cell Metadata to Select a Thumbnail and Provide a Tooltip
  - Choosing from Multiple Outputs
  - No Thumbnail Available
  - Specifying a Thumbnail File
- Gallery With Links (HTML only)