Commit Graph

1882 Commits

Author SHA1 Message Date
Casper da Costa-Luis 9c02c59637
fix py27 test 2021-09-18 15:21:10 +01:00
Casper da Costa-Luis e1d40664d7
ci: simplify os tests 2021-09-18 15:05:20 +01:00
Casper da Costa-Luis bcc5205f92
py310 2021-09-18 14:19:09 +01:00
Casper da Costa-Luis 89139a6487
tox-gh-actions 2021-09-18 14:00:27 +01:00
Casper da Costa-Luis 5df32ae360
build: misc framework updates 2021-09-18 12:51:55 +01:00
Casper da Costa-Luis f2c1389261
minor example fix 2021-09-18 12:51:24 +01:00
Casper da Costa-Luis 1f325a251d
docs: update deployment branches 2021-09-09 00:39:51 +01:00
Casper da Costa-Luis a38d82c64f
update linters 2021-09-09 00:33:27 +01:00
Casper da Costa-Luis d9b8dc4337
minor deps update 2021-09-09 00:30:40 +01:00
Casper da Costa-Luis 25cdf96c78
fix minor typo 2021-09-09 00:27:08 +01:00
Casper da Costa-Luis 140c94855b
bump version, merge pull request #1229 from tqdm/devel 2021-08-22 22:32:48 +01:00
Casper da Costa-Luis 98f7289675 fix `contrib.concurrent` with generators
- fixes #1231
2021-08-22 20:06:37 +01:00
Casper da Costa-Luis 8c35d4228c
fix notebook memory leak
- fixes #1216
2021-08-14 22:52:32 +01:00
Casper da Costa-Luis 1ac732c10d
bump version, merge pull request #1222 from tqdm/devel 2021-08-14 21:51:44 +01:00
Casper da Costa-Luis 09cf8bc212
Merge pull request #1207 from mariosasko/use-ref-disable-on-write-error 2021-08-14 21:45:24 +01:00
Casper da Costa-Luis 42d7b6e563
slight tidy 2021-08-14 21:36:01 +01:00
mariosasko 75ccceef7f
Use weakref on tqdm instance in DisableOnWriteError 2021-08-14 21:36:01 +01:00
Steffan Karger f99bcb479b logging: inherit output stream from existing handler
When using the logging redirection, logs will currently always be printed
to stdout, while the logging module default is to print to stderr.

Fix this by trying to inherit the stream from the existing handler, like
the code already does for the formatter.

Consider the following example:

    import logging
    import time

    from tqdm.contrib.logging import tqdm_logging_redirect

    log = logging.getLogger()
    log.warning("start")

    with tqdm_logging_redirect(range(int(4))) as pbar:
        for i in pbar:
            time.sleep(0.1)
            log.warning(f"Step {i}")

    log.warning("done")

Running this while redirecting stdout (`$ python3 log.py > /dev/null`)
without this patch will print:

    $ venv/bin/python log.py > /dev/null
    start
    100%|████████████████████████████████████████████| 4/4 [00:00<00:00,  9.87it/s]
    done

After this patch:

    $ venv/bin/python log.py > /dev/null
    start
    Step 0
    Step 1
    Step 2
    Step 3
    100%|████████████████████████████████████████████| 4/4 [00:00<00:00,  9.83it/s]
    done

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
2021-08-14 21:16:54 +01:00
Casper da Costa-Luis 46907ea524
tests: fix py27 keras 2021-08-14 17:08:35 +01:00
Casper da Costa-Luis 29ff37da73
Merge pull request #1223 from tqdm/telegram-rate-limit 2021-08-04 13:28:58 +01:00
Casper da Costa-Luis e02e77a8e9
contrib.telegram: gracefully handle creation rate limit
- fixes #1220
2021-08-04 13:02:15 +01:00
Casper da Costa-Luis 0b64cfe48d
relative imports 2021-08-04 13:01:22 +01:00
Casper da Costa-Luis ef424258fa
Merge pull request #1219 from MapleCCC/patch-1 2021-08-01 19:38:09 +01:00
Casper da Costa-Luis e3a6b5aaff
minor URL update 2021-08-01 19:35:35 +01:00
MapleCCC f8da193cfc
Link to non-plain CONTRIBUTING.md in README 2021-08-01 19:35:35 +01:00
Casper da Costa-Luis dd2ae1a542
update contribs 2021-08-01 19:33:22 +01:00
Casper da Costa-Luis 4b7aab2e9b
bump version, merge pull request #1209 from tqdm/devel 2021-07-30 21:47:33 +01:00
MapleCCC 223561a83b
`asyncio.gather` API consistency with stdlib
- closes #1212
2021-07-30 21:33:05 +01:00
Casper da Costa-Luis d0483be6c0
fix shutdown exception
- fixes #1198
2021-07-30 21:11:48 +01:00
Casper da Costa-Luis bad8f66bde
funding: add org GH sponsorship 2021-07-30 21:11:48 +01:00
Casper da Costa-Luis 269fa7d429
build: misc framework updates 2021-07-26 21:26:50 +01:00
Casper da Costa-Luis d986637bce
Merge pull request #1180 from tqdm/devel
bump version, merge pull request #1180 from tqdm/devel
2021-07-06 07:42:12 +01:00
Casper da Costa-Luis b6ada18917
minor demo updates 2021-07-04 01:04:03 +01:00
Casper da Costa-Luis 63f427b0b8
flush {stderr,stdout} on init
- (re) fixes #1177
2021-07-04 01:02:57 +01:00
Casper da Costa-Luis f4cc427dc4
support pandas==1.3.0 2021-07-04 00:52:58 +01:00
Casper da Costa-Luis 4735e81cfa
Merge pull request #1189 from raulsaavedr/raulsaavedr-tqdm 2021-06-30 17:57:36 +01:00
Casper da Costa-Luis d7ed8860a9
tests: add timeouts 2021-06-28 22:08:04 +01:00
Casper da Costa-Luis c36a011c3a
telegram: `delete()` on `leave=False`
- also misc minor tidy
2021-06-20 17:51:05 +01:00
raulsaavedr f1071d7d03
Update telegram.py to add a delete method
Add an option for delete bar message with the deleteMessage method in Bot API.
2021-06-19 15:26:44 -04:00
Casper da Costa-Luis dd93d93c01
`file.flush()` on init
- fixes #1177
2021-06-15 22:53:28 +01:00
Casper da Costa-Luis 28c90a74cf
build: minor lint 2021-06-15 22:42:05 +01:00
Luca Cappelletti e56cc12fbf Added AtributeError to address issue #1183 2021-06-15 22:36:38 +01:00
Casper da Costa-Luis d2a6ec2ab8
fix py3.10 `asyncio` tests
- fixes #1176
2021-06-12 17:39:42 +01:00
Casper da Costa-Luis 9f4ae743fe
install colorama on Windows
- fixes #1139
2021-06-12 17:20:17 +01:00
Casper da Costa-Luis c1ec3b18cf
bump version, merge pull request #1175 from tqdm/devel 2021-06-12 15:39:04 +01:00
Ofek Lev b7fb6aa274
Fix typo (#1178) 2021-06-12 15:33:10 +01:00
Casper da Costa-Luis f27f2901e3
add merch links 2021-06-12 15:21:14 +01:00
Jannis Leidel 963137c123 Gracefully handle empty COLUMNS/LINES env vars on Linux. 2021-05-31 21:45:22 +01:00
Casper da Costa-Luis 6180f188fb
build: bot comment 2021-05-24 13:10:17 +01:00
Casper da Costa-Luis 05ad200df3
bump version, merge pull request #1163 from tqdm/devel 2021-05-24 12:33:23 +01:00