

.. _sphx_glr_auto_examples_no_output:

.. _no_out_examples:

No image output examples
------------------------

This section gathers examples which don't produce any figures. Some examples
only output to standard output, others demonstrate how Sphinx-Gallery handles
examples with errors.



.. raw:: html

    <div class="sphx-glr-thumbnails">

.. thumbnail-parent-div-open

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This demonstrates an example .py file that is not executed when gallery is generated (see build_pattern) but nevertheless gets included as an example. Note that no output is capture as this file is not executed.">

.. only:: html

  .. image:: /auto_examples/no_output/images/thumb/sphx_glr_just_code_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_no_output_just_code.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">A short Python script</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates a code block that raises an error and how any code blocks that follow are not executed.">

.. only:: html

  .. image:: /auto_examples/no_output/images/thumb/sphx_glr_plot_raise_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_no_output_plot_raise.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Example that fails to execute</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="By default, examples with code blocks that raise an error will have the broken image stamp as their gallery thumbnail. However, this may not be desired, e.g. if only part of the example is expected to fail and it should not look like the entire example fails.">

.. only:: html

  .. image:: /auto_examples/no_output/images/thumb/sphx_glr_plot_raise_thumbnail_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_no_output_plot_raise_thumbnail.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Example that fails to execute (with normal thumbnail behaviour)</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example captures the standard output and includes it in the example. If output is too long it becomes automatically framed into a text area.">

.. only:: html

  .. image:: /auto_examples/no_output/images/thumb/sphx_glr_plot_strings_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_no_output_plot_strings.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">Constrained Text output frame</div>
    </div>


.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Example script with invalid Python syntax ">

.. only:: html

  .. image:: /auto_examples/no_output/images/thumb/sphx_glr_plot_syntaxerror_thumb.png
    :alt:

  :ref:`sphx_glr_auto_examples_no_output_plot_syntaxerror.py`

.. raw:: html

      <div class="sphx-glr-thumbnail-title">SyntaxError</div>
    </div>


.. thumbnail-parent-div-close

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/no_output/just_code
   /auto_examples/no_output/plot_raise
   /auto_examples/no_output/plot_raise_thumbnail
   /auto_examples/no_output/plot_strings
   /auto_examples/no_output/plot_syntaxerror

