-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix tqdm_notebook description being truncated for long descriptions. #599
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
Fix tqdm_notebook description being truncated for long descriptions. #599
Conversation
Codecov Report
@@ Coverage Diff @@
## master #599 +/- ##
=======================================
Coverage 99.14% 99.14%
=======================================
Files 9 9
Lines 704 704
Branches 125 125
=======================================
Hits 698 698
Misses 3 3
Partials 3 3 |
|
Looks good to me. @casperdcl @AbysmalBiscuit |
|
@chengs Thanks for the suggestions! I tested to see if the impact of ipywidgets' version. The earliest release of ipywidgets that has The following are a series of srceenshots from the various relevant versions: 7.0.0a7 ( 7.0.0a9 (last release before description can be adjusted): 7.0.0a10 (description can be adjusted): I don't know why with version 7.0.0a6 a Based on this, should I add a version check that will throw an ImportError for anything older than 7.0.0a7 and issue a warning when someone uses a version up to 7.0.0a10 (the warning being for: 7.0.0a7 <= version <= 7.0.0a9); or should I just throw an ImportError that tells people to install at least version 7.0.0a10? Also I have realized that I haven't yet tested older versions of ipython, so I'll test those as well. Edit: changed back to original question. |
|
WOW, nice research work! |
|
Hey, so I had added a version check, and I realized a problem with it. Checking the version of ipywidgets requires that it be installed. Hence if I had tried assigning a description update function, based on the version of ipywidgets, and if it was installed, but that didn't work unfortunately. Also, setting the style would only throw an error if a widget has no style attribute, otherwise it would just add the css rule to the page. The css rule by itself wouldn't do anything. I had tried to setup an environment using Anaconda to test older versions of IPython, but I couldn't get the jupyter notebook to run correctly. Edit: Should I then just add a try-except block around where I check the version? |
|
@AbysmalBiscuit I think, now it is okay. |
|
@chengs sorry for the delay. I have checked it using a Python2 kernel in Jupyter and it works fine. |
|
fixes #582 |
- fix `str.isnumeric` #605 - fix `WeakSet` `KeyError` #548, #553, #596 -> #607 - stop `tqdm_notebook` description truncation #582 -> #599 - include `unit_scale` for `rate` #608 - add `auto` -> nowarning `autonotebook` - add better postfix numeric formatting #621 - minor refactoring #609 -> #616 - update documentation - add unit tests - fix py26 CI
- fix `str.isnumeric` #605 - fix `WeakSet` `KeyError` #548, #553, #596 -> #607 - stop `tqdm_notebook` description truncation #582 -> #599 - include `unit_scale` for `rate` #608 - add `auto` -> nowarning `autonotebook` - add better postfix numeric formatting #621 - minor refactoring #609 -> #616 - update documentation - add unit tests - fix py26 CI




Fix tqdm_notebook description being truncated for long descriptions.
Related to issue #582