Open DSLituiev opened 1 month ago
actually this breaks even without nesting. Something about pbar.update()
import streamlit as st
from functools import partial
from stqdm import stqdm
from time import sleep
import logging
progress = partial(stqdm, st_container=st.sidebar)
sections = "ABCDEFGHIJK"
with progress(total=len(sections), desc="Working on") as pbar:
for section_counter, draft_section in enumerate(sections):
logging.warning(f"counter: {section_counter} / {len(sections)}")
try:
pbar.update(section_counter)
except Exception as ee:
logging.warning(ee)
sleep(0.5)
Describe the bug
Nested stqdm loops fail
To Reproduce
stqdm_bug.py:
Fails while displaying:
Expected behavior
I expect the nested progress bars to run bug-free as
tqdm
doesScreenshots
if I replace
stqdm
withtqdm
, it works with no issues.Desktop: