This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Observe the stdout redirected from sub thread to main thread through shared StringIO instance""" | |
import time | |
import contextlib | |
from concurrent.futures import ThreadPoolExecutor | |
from io import StringIO | |
import streamlit as st |
OlderNewer