Create README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2023-12-01 21:31:01 +01:00 committed by GitHub
parent e8ce27f779
commit 71a7b9456e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

27
TQDM/README.md Normal file
View file

@ -0,0 +1,27 @@
# [TQDM](https://tqdm.github.io/) -- Make your progress visible
## Goal
Introducing a nice progress bar for for loops.
Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
```shell
pip install tqdm
```
## trange
You can just replace range by trange:
```python
from tqdm import trange
import time
for i in trange(0, 10):
time.sleep(1)
```
```python console
30%|███ | 3/10 [00:03<00:07, 1.12s/it]
```
Beside trange, [TQDM](https://tqdm.github.io/) can be used for more elaborated setups.