You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes when I capture output, I want to not just redirect it, but tee it (write to both the original and redirected files, instead of only the redirected file). This could probably be a simple flag, since we already have an internal handle on the original FD for restoring later.
The text was updated successfully, but these errors were encountered:
Currently is there a way to tee to both console output and file output in jupyter notebook? In jupyter notebook, we have cell output, console output and file output. By doing like
I can tee to cell output and file output. But I haven't found a way to tee to the console output and file output. Using like logger.addHandler(logging.StreamHandler(sys.__stdout__)) will cause infinite loop.
Sometimes when I capture output, I want to not just redirect it, but tee it (write to both the original and redirected files, instead of only the redirected file). This could probably be a simple flag, since we already have an internal handle on the original FD for restoring later.
The text was updated successfully, but these errors were encountered: