Skip to main content
Ctrl+K

🖼️ Sphinx-Gallery

Site Navigation

  • User guide
  • Advanced
  • Demo galleries
  • Changelog

Site Navigation

  • User guide
  • Advanced
  • Demo galleries
  • Changelog
  • 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

RST file generator

scrapers

Scrapers for embedding images

py_source_parser

Parser for python source files

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
  • Utilities

© Copyright 2014-2023, Sphinx-gallery developers.

Created using Sphinx 6.1.3.

Built with the PyData Sphinx Theme 0.13.1.