.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/example.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_example.py: Example ======= This is an example of a code example which is displayed but **not** ran. .. note:: See :ref:`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. .. GENERATED FROM PYTHON SOURCE LINES 17-19 Code can be split into multiple cells using `# %%`, see the Python file for exactly how this looks. .. GENERATED FROM PYTHON SOURCE LINES 19-21 .. code-block:: Python print("This is a single code cell") .. GENERATED FROM PYTHON SOURCE LINES 22-26 Second Cell ----------- Formatted text can be written before or between the cells using Python comments and docstrings. .. GENERATED FROM PYTHON SOURCE LINES 26-28 .. code-block:: Python print("This is another code cell") .. _sphx_glr_download_examples_example.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: example.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: example.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: example.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_