Skip to main content
Ctrl+K

🖼️ Sphinx-Gallery

  • User guide
  • Advanced
  • Demo galleries
  • Contribution Guide
  • Changelog
  • GitHub
  • PyPI
  • User guide
  • Advanced
  • Demo galleries
  • Contribution Guide
  • Changelog
  • GitHub
  • PyPI
  • Advanced topics
  • Sphinx-Gallery API Reference

Sphinx-Gallery API Reference#

Note

Sphinx-Gallery is typically used indirectly via Sphinx execution and configuration variables, see Configuration for how to do this. However, as a standard Python project, we document many functions and classes as well below, even though these will typically not be needed by end users.

Sphinx Gallery#

sphinx_gallery:

gen_gallery

Sphinx-Gallery Generator.

backreferences

Backreferences Generator.

gen_rst

reST file generator.

scrapers

Scrapers for embedding images.

py_source_parser

Parser for python source files.

block_parser

BlockParser divides non .py source files into blocks of code and markup text.

docs_resolv

Link resolver objects.

notebook

Parser for Jupyter notebooks.

downloads

Utilities for downloadable items.

sorting

Sorters for Sphinx-Gallery (sub)sections.

interactive_example

Binder and Jupyterlite utility functions.

directives

Custom Sphinx directives.

Utilities.

Miscellaneous utilities.

sphinx_gallery.utils:

optipng(fname[, args])

Optimize a PNG in place.

previous

Sphinx-Gallery Utilities

next

sphinx_gallery.gen_gallery

On this page
  • Sphinx Gallery

© Copyright 2014-2025, Sphinx-gallery developers.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.