

.. _sphx_glr_auto_examples_no_output_plot_strings.py:


Constrained Text output frame
=============================

This example captures the stdout and includes it in the
example. If output is too long it becomes automatically
framed into a text area.




.. code-block:: python


    # Code source: Óscar Nájera
    # License: BSD 3 clause

    print('This is a long test Output\n' * 50)





.. rst-class:: sphx-glr-script-out

 Out::

    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output
    This is a long test Output


One line out



.. code-block:: python


    print('one line out')




.. rst-class:: sphx-glr-script-out

 Out::

    one line out


**Total running time of the script:** ( 0 minutes  0.000 seconds)



.. only :: html

 .. container:: sphx-glr-footer


  .. container:: sphx-glr-download

     :download:`Download Python source code: plot_strings.py <plot_strings.py>`



  .. container:: sphx-glr-download

     :download:`Download Jupyter notebook: plot_strings.ipynb <plot_strings.ipynb>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_
