Note

Click here to download the full example code or to run this example in your browser via Binder

# Constrained Text output frame

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.

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

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

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

    print('one line out')

Out:

    one line out

Estimated memory usage: 9 MB

Gallery generated by Sphinx-Gallery