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)
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")
one line out

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

Estimated memory usage: 176 MB

Gallery generated by Sphinx-Gallery