You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you very much for developing this awesome library. I really like it because of its easy use and the option to utilize tqdm with nearly no overhead for the developer.
Currently, when I code with jupyter notebook, I have to work on different devices, os and using ssh. I was wondering, why sometimes on some configurations the tqdm bar didn't show up or I got empty output cells or I got an error due to javascript widget missing. It could be that I found the problem for my types of problems.
It seems like, that tqdm.auto import is not optimal or the frontend sometimes fails to distinguish between the run on the terminal and in a jupyter notebook (see tqdm/tqdm#1098 (comment)). My current workaround for these types of problems, which seems currently to work, is to change the import in the "progress_bar.py" file : "from tqdm.auto import tqdm" to just "from tqdm import tqdm". The progressbar is now not shiny and pretty, but it seems like, that it gurantes to work on any setup described before.
If you don't want to change the import, maybe you can outsource this decision as a parameter on the method call something like "notebook=True" or at least write it to the documentation. It would be really sad, if users want to use your great library because of the support of tqdm and uninstall it again, because the progess bar doesn't show up.
The text was updated successfully, but these errors were encountered:
I could add a progress_bar_backend parameter which you can then set to default or notebook (maybe adding 'rich' on a later point in time). The default can then be overridden globally, but is set to the standard tqdm on startup.
This does indeed mean that people won't get a shiny widget by default, but I guess that's better than sometimes having no progress bar at all.
Hi, thank you very much for developing this awesome library. I really like it because of its easy use and the option to utilize tqdm with nearly no overhead for the developer.
Currently, when I code with jupyter notebook, I have to work on different devices, os and using ssh. I was wondering, why sometimes on some configurations the tqdm bar didn't show up or I got empty output cells or I got an error due to javascript widget missing. It could be that I found the problem for my types of problems.
It seems like, that tqdm.auto import is not optimal or the frontend sometimes fails to distinguish between the run on the terminal and in a jupyter notebook (see tqdm/tqdm#1098 (comment)). My current workaround for these types of problems, which seems currently to work, is to change the import in the "progress_bar.py" file : "from tqdm.auto import tqdm" to just "from tqdm import tqdm". The progressbar is now not shiny and pretty, but it seems like, that it gurantes to work on any setup described before.
If you don't want to change the import, maybe you can outsource this decision as a parameter on the method call something like "notebook=True" or at least write it to the documentation. It would be really sad, if users want to use your great library because of the support of tqdm and uninstall it again, because the progess bar doesn't show up.
The text was updated successfully, but these errors were encountered: