pymc
pymc copied to clipboard
BUG: new progressar adds empty spaces when progressbar=False
Describe the issue:
As I need to sample the posterior on a very large sample of 1M rows, I have batched the operation and run it in groups of 10k To monitor the progress, I put a tqdm progress bar on the bach loop.
This used to behave as expected, but since 5.13.1 this produces the following:
Reproduceable code example:
import pymc as pm
# Define and sample any model you like into idata
from tqdm import tqdm
with model:
for i in tqdm(list(range(10))):
pm.sample_posterior_predictive(
idata,
progressbar=False,
)
Error message:
No response
PyMC version information:
5.13.1
Context for the issue:
No response
I think @tomicapretto also noticed that. And he mentioned (?) it's an open issue in the progressbar library
May need an if/else statement somewhere.
@tomicapretto reports this is not yet fixed