Sphinx-Gallery

  • User guide
  • Advanced
  • Demo galleries
  • Contribution Guide
  • Changelog
  • Basics Gallery with Matplotlib
    • Local module
    • Introductory example - Plotting sin
    • Plotting the exponential function
    • Seaborn example
    • Capturing output representations
    • Choosing the thumbnail figure
    • Providing a figure for the thumbnail image
    • Using Unicode everywhere 🤗
    • Identifying function names in a script
    • Using sys.argv in examples
    • Matplotlib animation support
    • No image output examples
      • A short Python script
      • Example that fails to execute
      • Constrained Text output frame
      • SyntaxError
  • Notebook-style Narrative Gallery
    • Alternating text and code
  • Plotly Gallery
    • Example with the plotly graphing library

Notebook-style Narrative Gallery¶

You can have multiple galleries, each one for different uses. For example, one gallery of examples and a different gallery for tutorials.

This gallery demonstrates the ability of Sphinx-Gallery to transform a file with a Jupyter notebook style structure (i.e., with alternating text and code).

Alternating text and code

Alternating text and code

Download all examples in Python source code: tutorials_python.zip

Download all examples in Jupyter notebooks: tutorials_jupyter.zip

Gallery generated by Sphinx-Gallery

previous

SyntaxError

next

Alternating text and code

© Copyright 2014-2024, Sphinx-gallery developers.

Created using Sphinx 7.2.6.