Skip to main content
Ctrl+K

🖼️ Sphinx-Gallery

Site Navigation

  • User guide
  • Advanced
  • Demo galleries
  • Changelog

Site Navigation

  • User guide
  • Advanced
  • Demo galleries
  • Changelog

Section Navigation

  • Matplotlib Gallery (and basics)
    • 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
    • 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
  • PyVista Gallery
    • Collision
    • Plotting Glyphs (Vectors or PolyData)
    • Lighting Properties
    • Ray Tracing
  • Example Galleries
  • Notebook-style Narrative Gallery

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-2023, Sphinx-gallery developers.

Created using Sphinx 6.1.3.

Built with the PyData Sphinx Theme 0.13.1.