add reference to complex examples of live display in repo

This commit is contained in:
Nathan Page 2020-11-01 13:38:07 -05:00
parent 7514708a9d
commit a509961e14
1 changed files with 10 additions and 1 deletions

View File

@ -160,4 +160,13 @@ If you have another Console object you want to use, pass it in to the :class:`~r
Redirecting stdout / stderr Redirecting stdout / stderr
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
To avoid breaking the progress display visuals, Rich will redirect ``stdout`` and ``stderr`` so that you can use the builtin ``print`` statement. This feature is enabled by default, but you can disable by setting ``redirect_stdout`` or ``redirect_stderr`` to ``False`` To avoid breaking the live display visuals, Rich will redirect ``stdout`` and ``stderr`` so that you can use the builtin ``print`` statement.
This feature is enabled by default, but you can disable by setting ``redirect_stdout`` or ``redirect_stderr`` to ``False``.
Examples
--------
See `table_movie_live.py <https://github.com/willmcgugan/rich/blob/master/examples/table_movie_live.py>`_ and
`top_lite_simulator.py <https://github.com/willmcgugan/rich/blob/master/examples/top_lite_simulator.py>`_
for deeper examples of live displaying.