-
Notifications
You must be signed in to change notification settings - Fork 41
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
Space between lines keeps increasing #21
Comments
Same in my case. I looked at the HTML code of the widget and discovered that every 'inner loop' leaves this code:
So the code above repeats itself as many times as the number of the epochs. Maybe that is because the author of original TQDM changed something in the code. |
I think that's actually more a jupyter thing. What could fix this is if instead of generating a new tqdm for each epoch, it actually just re-uses the old one and manually sets (Of course, only when |
This is an issue with ipywidgets (#1845). The only fix so far is to revert to ipywidgets 6.0.1 |
Here's an implementation of @janfreyberg 's suggestion master...starfys:master Note: The Overall, this is a hack, and probably shouldn't be merged, but is useful in the meantime. The real issue is in ipywidgets (jupyter-widgets/ipywidgets#1845) |
Fixed in ipywidgets 7.2.0 Update your ipywidgets package to the latest version if you have this problem. |
Just FYI I am still getting this with ipywidgets 7.2.1. I'd prefer to turn off the inner progress bar entirely, there a way to do that? |
Still getting this on ipywidgets 7.4.2, have there been any other fixes/workarounds? |
@alexisdrakopoulos > Still getting this on ipywidgets 7.4.2, have there been any other fixes/workarounds? I found one!! You can use the following as a workaround:
|
The workaround by @TiagoCortinhal worked for me. But I had to wrap it with the from keras_tqdm import TQDMNotebookCallback
display(HTML("""
<style>
.p-Widget.jp-OutputPrompt.jp-OutputArea-prompt:empty {
padding: 0;
border: 0;
}
</style>
""")) |
This is the only workaround that worked for me in JupyterLab: from IPython.core.display import HTML
# See https://github.com/bstriner/keras-tqdm/issues/21#issuecomment-443019223
display(HTML("""
<style>
.jp-OutputArea-child:has(.jp-OutputArea-prompt:empty) {
padding: 0 !important;
}
</style>
""")) |
When I use the TQDM with Keras, it works well but each time an epoch is added, the space between the train loop progressbar and the epoch loop progressbar keeps increasing. It is anoying when I have several epoch. Here is an example:
The text was updated successfully, but these errors were encountered: