Skip to content
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 on Pycharm? #61

Closed
bomcon123456 opened this issue Apr 22, 2020 · 2 comments
Closed

Progress Bar on Pycharm? #61

bomcon123456 opened this issue Apr 22, 2020 · 2 comments

Comments

@bomcon123456
Copy link

Hi I'm currently using Pycharm to run remote jupyter server, but when I'm training (using fastai2), the progress bar simply grey and not running at all (the train still ran and finished)
Thank you!
ảnh

@sgugger
Copy link
Contributor

sgugger commented Apr 22, 2020

It seem simple widgets don't work in Pycharm so you should use the console behavior:

from fastprogress.fastprogress import force_console_behavior
master_bar, progress_bar = force_console_behavior()

@aljungberg
Copy link

aljungberg commented Aug 18, 2022

Just for future reference, the reason PyCharm output with the regular progress bar doesn't work is that self.out.update does nothing in PyCharm. I found a number of issues in the PyCharm bug tracker which seem to confirm that progressively updating display output using display_handle = display(..., display_id=True) and display_handle.update() has no effect.

You can render the HTML just fine like this:

from IPython.display import clear_output, display, HTML
display(HTML(mb.html_code))

where mb is the master bar. This renders the correct output -- but there seems to be no way to make it interactive/animated such that it updates over time in PyCharm.

One of the jetbrains bug reports: https://youtrack.jetbrains.com/issue/DS-3383/IPythondisplay-update-problem

Screenshot 2022-08-18 at 21 35 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants