-
Notifications
You must be signed in to change notification settings - Fork 15
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
progress bar in jupyter notebook #49
Comments
Hi samsja, that's odd. It might be that Jupyter doesn't support some of the ANSI escape sequences used. The way I don't have much time to work on this library at the moment, but I'll gladly accept a PR :) |
Hey @dnadlinger I did not pursue further on this issue |
Would be nice if someone got it working. |
I'm trying to get this working. In principle this snippet: ProgressBars.jl/src/ProgressBars.jl Line 247 in 4392f2b
should work fine. But I think the other ansi escape sequences: ProgressBars.jl/src/ProgressBars.jl Lines 244 to 246 in 4392f2b
do not work for Jupyter, so need to be tweaked if a notebook is detected. |
My sense is that these ANSI symbols are not supported in Jupyter: jupyter/notebook#2567. So this will not work without modifications. It looks like ANSI sequences are simply stripped: jupyter/notebook#444, rather than printed - which is why nothing else shows up. One hacky solution to get this working is to print the entire progress bar (including multi-line prefixes/postfixes) to a single line of text, and then overwrite it with A cleaner solution would be to use https://github.com/JuliaGizmos/Interact.jl to implement an actual Jupyter widget (like tqdm does). Or even just normal IJulia.jl |
https://github.com/timholy/ProgressMeter.jl works for me :) |
Hey,
I discover a issue while using ProgressBar in a notebook, the progress bar is print at each new iteration instead of refreshing as excepted.
How to reproduce the error:
launch the following code in either jupyter lab or jupyter notebook.
here is the output:
Is there a way to proprely use progress bar in notebook ? Maybe like tqdm.auto_notebook ?
Otherwise I would be glad to work on a PR.
Thanks in advance
The text was updated successfully, but these errors were encountered: