-
-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Use normal tqdm in notebooks by default #1728
Comments
@fehiepsi - I remember I had changed that to tqdm at one point, for exactly this reason. We don't have a good alternative at this point. The following comes to mind:
I think the best long-term course of option for us is to figure out how to get the above line to render when the notebook is converted into HTML. It doesn't even have to work out of the box, and even if we have to change a few configurations or do it through a script to get it working for our tutorials, that's okay. The users can choose to disable the progress bar before the final export to get rid of the note: Above is my vote for the next step. Feel free to add your suggestion to the list. |
@neerajprad About getting HBox line to be rendered in HTML, this PR of nbconvert can be a solution: jupyter/nbconvert#900. I really love the current progressbar messages (the only minor point is when MCMC is so fast in notebook, this issue will happen, but I can solve it by changing jupyter's configs)). Whether it is a normal log or a widget is not important I guess. Because there are many issues for tqdm with multiprocessing in notebooks, I think we can go with your vote and keep the current stage of progressbar for multi-chain. If we can convert |
Currently, Pyro's MCMC uses tqdm's auto_notebook to display progress bar by default. However, I find that it causes more troubles than advantages:
I tried to replace this line by
from tqdm import tqdm
but it only works fornum_chains=1
. For multi-chain, the issue tqdm/tqdm#630 still remains.The text was updated successfully, but these errors were encountered: