Example#

This is an example of a code example which is displayed but not ran.

Note

See Ran Example for an example which is displayed and ran.

The examples can include documentation in the docstrings and comments alongside the code and outputs. Text uses the reStructuredText format, the same as other documentation in Sphinx.

Code can be split into multiple cells using # %%, see the Python file for exactly how this looks.

print("This is a single code cell")

Second Cell#

Formatted text can be written before or between the cells using Python comments and docstrings.

print("This is another code cell")

Gallery generated by Sphinx-Gallery