-
Notifications
You must be signed in to change notification settings - Fork 92
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
ProgressMeter.next! prints as many bars as updates (on Jupyter notebook) #71
Comments
I have the same problem in IJulia and it seems to come from |
What version are you two running? If it's 0.5.1, can you try |
Oh, wait, this seems like a special case. Can you provide a complete minimum working example? |
The problem occurs with both 0.5.0 and 0.5.1 — I have IJulia 1.6.2. Here is a working example: using ProgressMeter
p = Progress(100)
for i in 1:100
update!(p, i; showvalues = [(:test, 1.0)])
sleep(0.01)
end Here as a notebook: https://gist.github.com/damiendr/4d932dfe60d8de17fbbe9a2d215edcfc#file-progressmeter-ipynb |
I have the same issue on IJulia whenever I try to print some variable besides just showing the progress bar. |
Would it help solve the problem if we printed everything on one line? |
If IJulia can't support the equivalent of terminal movement escape codes then one has to find a completely independent solution on IJulia. That will presumably involve learning about how Jupyter handles output to the browser. |
As pointed out, Python suffers from the same difficulty. In that case I was using tqdm, and was able to easily switch to their tqdm_notebook functionality, which uses ipywidgets to display a much nicer progress bar that worked well within the notebook. |
I'm surprised that it's still an issue. I tried to replace update!(p, i)
ProgressMeter.printover(p.output, "test: 1.0", p.color) and indeed it's almost working. It shows the desired message for some time, but almost immediately it got overwritten with the default message. So, maybe, fixing #33 could resolve this issue as well? |
Possibly related: #271 |
Hello,
When I use ``ProgressMeter.next!(progressbar; showvalues = [(:epoch, epoch), (:acc, acc)])`
I get the following behaviour
I was expecting a single bar that changed, not multiple of them.
I have tried with
@showprogress
and it works as expected. This is the output:The text was updated successfully, but these errors were encountered: