How to show sampling progress in Python console?


#1

Can’t find a way to display progression of sampling, and it is very problematic for sampling that takes several minutes. This feature seems to exist in RStan, but I can’t find it in PyStan. Any advice appreciated.


#2

Do you use Jupyter Notebook/Lab? See in the console.

This problem is fixed with PyStan3


#3

I use Spyder IDE 3.3.2 with PyStan 3, is there a way to do it in Spyder ?


#4

PyStan3 uses tqdm to show the progress. Does tqdm work normally in your IDE?


#5

It’s look like tqdm works perfectly fine for an easy exemple :
image

When I’m using STAN, the sampling result is good, but no progress bar appears :
image


#6

Ok, you are using PyStan 2. I’m not sure how Spyder handles C++ output.

Try with setting verbose=True


#7

Ok you’re right I use PyStan 2, is there a PyStan 3 stable release and if so, do you know where I can find it ? I don’t see it on the website. Also, I tried with verbose = True and it doesn’t work either.