triqs.utility.redirect.start_redirect

triqs.utility.redirect.start_redirect()[source]

Start a background thread that redirects the C++ stdout to Python.

Instantiates a T thread and starts it. If a redirection thread is already running, prints a notice and returns without doing anything (the call is idempotent).