Casper da Costa-Luis
6e4b48cfcb
gui: fix TypeError on unknown `len()`
...
- fixes #971
2020-06-28 21:12:31 +01:00
Casper da Costa-Luis
b18a31eb26
notebook: cleaner `ipywidgets` ImportError
...
- more succinct traceback
- fixes #872
2020-06-28 20:59:28 +01:00
Casper da Costa-Luis
2e495142f4
Merge branch 'tqdm-auto-sys-modules' into devel
2020-06-28 20:20:36 +01:00
Leo Singer
4e8f74cd29
Speed up tqdm.auto import when not in an IPython notebook
...
In tqdm.auto, look for `IPython` in `sys.modules` rather than
explicitly importing it. If we are in an IPython notebook, then
IPython will have already been imported. If we are not in an
IPython notebook, then importing IPython will take almost half a
second.
Here are import times on a 2018 MacBook Pro with an SSD.
Before this patch:
$ time python -c 'from tqdm.auto import tqdm'
real 0m0.474s
user 0m0.278s
sys 0m0.142s
After this patch:
$ time python -c 'from tqdm.auto import tqdm'
real 0m0.069s
user 0m0.041s
sys 0m0.020s
Fixes #709 .
2020-06-28 20:18:01 +01:00
Casper da Costa-Luis
fd771ffd3f
contrib.utils_worker: minor queue safety
...
Would be required to extend queue len > 2
2020-06-26 16:51:07 +01:00
Casper da Costa-Luis
3734b6cc11
inline documentation for telegram & discord
2020-06-26 13:21:53 +01:00
Casper da Costa-Luis
8d721b243d
add contrib.bells
...
All the bells & whistles!
- related #614
- realted #950
2020-06-25 20:31:01 +01:00
Casper da Costa-Luis
2cf0bbb723
Merge branch 'discord' into devel
2020-06-25 20:25:52 +01:00
Casper da Costa-Luis
39cc736a20
keep Codacy happy
2020-06-25 20:23:21 +01:00
Casper da Costa-Luis
5da42ddf5c
support env var defaults, fix messages, safe kwarg parsing
2020-06-25 20:23:21 +01:00
Casper da Costa-Luis
eaf4b5d751
correct naming/typos
2020-06-25 20:23:21 +01:00
Casper da Costa-Luis
283080b469
contrib.utils_worker has no flush so no delay
2020-06-25 20:23:21 +01:00
Casper da Costa-Luis
60d916c14e
missing MonoWorker
2020-06-25 20:23:21 +01:00
Casper da Costa-Luis
78f86fcb96
contrib.discord,telegram abstract & cleanup MonoWorker
2020-06-25 20:23:21 +01:00
Casper da Costa-Luis
8b5b4bbdbf
add contrib.discord: first Discord Bot!
2020-06-25 20:23:21 +01:00
Casper da Costa-Luis
a80f0a647d
fix snap builds
2020-06-10 20:38:27 +01:00
Casper da Costa-Luis
fac85caa16
Merge branch 'py38' into devel
...
- closes #986
2020-06-06 22:39:13 +01:00
Casper da Costa-Luis
cfb921c768
update pypy
2020-06-06 21:45:29 +01:00
Casper da Costa-Luis
aae8770ca4
remove deprecated link
...
- fixes #981
2020-06-06 21:44:12 +01:00
Casper da Costa-Luis
171a409849
official py3.8 support
2020-06-06 15:53:41 +01:00
Casper da Costa-Luis
07500116b5
add py38 tests
2020-06-06 15:37:18 +01:00
Casper da Costa-Luis
0cd9448b2b
fix codacy
2020-06-03 11:34:30 +01:00
Casper da Costa-Luis
1e0bb74db6
bump version, merge branch 'devel'
...
- fix missing `sys.setcheckinterval` in py3.9 (#978 )
- fix `keras.TqdmCallback` compatibility with `tensorflow==2.2.0` (#979 )
- update documentation
+ correct `contrib.concurrent` correct `max_workers` (#977 )
+ drop prominent mention of `xrange` (#965 )
2020-06-03 11:03:40 +01:00
Casper da Costa-Luis
133b2184b8
keras: fix tensorflow==2.2.0 compatibility
...
- fixes #979
2020-06-03 10:52:43 +01:00
Casper da Costa-Luis
554b2a3dce
sync docs
2020-06-03 10:40:32 +01:00
Leonardo Taccari
c8f865dd25
Update README.rst
2020-06-03 10:40:32 +01:00
Michał Górny
dcd18b35ce
Fix error due to missing sys.setcheckinterval in py3.9
...
Python 3.9 finally removed sys.setcheckinterval(). While the package
apparently tried to account for that, the logic is flawed and the second
getattr() raises an AttributeError even if its result is never used.
This caused tests to fail:
File "/tmp/tqdm/tqdm/tests/tests_tqdm.py", line 126, in pretest
getattr(sys, 'setswitchinterval', getattr(sys, 'setcheckinterval'))(100)
AttributeError: module 'sys' has no attribute 'setcheckinterval'
Refactor the code into a try/except construct that does not execute
the setcheckinterval() branch unless setswitchinterval() is actually
missing. While at it, scale the arguments a bit -- the current version
used either 100 instructions or 100 seconds that were rather of very
different magnitudes.
2020-06-03 10:32:24 +01:00
Casper da Costa-Luis
0cacf85c7c
contrib.concurrent: correct max_workers documentation
...
- fixes #977
2020-06-03 10:30:37 +01:00
Casper da Costa-Luis
571f0ed3dd
minor linting, sync readme
2020-05-22 13:54:09 +01:00
Casper da Costa-Luis
ee651fd855
fix docs silly requests usage
2020-05-03 15:12:42 +01:00
Casper da Costa-Luis
89ee14464b
bump version, merge branch 'devel'
2020-05-03 00:54:03 +01:00
Casper da Costa-Luis
f0bdabd2fa
sync readme with DEMO.ipynb
2020-05-03 00:04:23 +01:00
Casper da Costa-Luis
e00501a591
add requests examples
...
- fixes #242
2020-05-02 23:55:17 +01:00
Casper da Costa-Luis
a25885e440
Merge branch 'kraptor/master' into devel
...
- closes #940
2020-05-02 22:56:42 +01:00
David Anes
8b83af2cc8
Fix: release lock if an exception occurs within the context manager
2020-05-02 22:55:44 +01:00
Casper da Costa-Luis
bf6563d384
Merge branch 'completion' into devel
...
- closes #946
- closes #947
- fixes #858
2020-05-02 22:53:17 +01:00
Casper da Costa-Luis
cecc8e0be5
mention snap tab copletion in readme
2020-05-02 22:52:51 +01:00
Casper da Costa-Luis
2a318d9b06
add missing docstrings
2020-05-02 22:45:16 +01:00
Casper da Costa-Luis
0ca5e73d4f
fix py26
2020-05-02 22:45:16 +01:00
Casper da Costa-Luis
c7586a604e
fix codacy
2020-05-02 22:45:16 +01:00
Casper da Costa-Luis
6240f932ac
update contributing docs
2020-05-02 22:45:16 +01:00
Casper da Costa-Luis
6be1880867
add completion.sh to setup
...
- also sort entries for consistent re-generation
2020-05-02 22:45:16 +01:00
Casper da Costa-Luis
a2fb4cef0f
merge tests, fix flake8
2020-05-02 22:45:16 +01:00
Nishant Rodrigues
cb2feea2ef
docs
...
- updated CONTRIBUTING.md
- removed sample docs
2020-05-02 22:45:16 +01:00
Nishant Rodrigues
795cd53d7f
tests
...
- test auto complete script
- remove redundant test
2020-05-02 22:45:16 +01:00
Casper da Costa-Luis
40bda883a7
don't complete after user-specified options
2020-05-02 22:45:16 +01:00
Casper da Costa-Luis
153098e937
add --comppath test
2020-05-02 22:45:16 +01:00
Nishant Rodrigues
96242d755d
documentation
...
- integrate with code
- add to readme/docs etc.
- remove file
2020-05-02 22:45:16 +01:00
Nishant Rodrigues
895ee5fc2e
test bash autocomplete args
2020-05-02 22:45:16 +01:00
Casper da Costa-Luis
3e549bf418
minor efficiency
2020-05-02 22:45:16 +01:00