Hello there !
I integrated tqdm with streamlit.
As discussed here, I am sharing the project without the community.
Link to :
- the repo : GitHub - Wirg/stqdm: stqdm is the simplest way to handle a progress bar in streamlit app.
- pypi : stqdm · PyPI
Install :
pip install stqdm
Some examples :
- Directly
from time import sleep
from stqdm import stqdm
for _ in stqdm(range(50)):
for _ in stqdm(range(15)):
sleep(0.5)
- Using pandas
from time import sleep
import pandas as pd
from stqdm import stqdm
stqdm.pandas()
pd.Series(range(50)).progress_map(lambda x: sleep(1))
pd.Dataframe({"a": range(50)}).progress_apply(lambda x: sleep(1), axis=1)