mirror of
https://github.com/davrot/pytutorial.git
synced 2025-06-19 15:00:02 +02:00
Rename TQDM/README.md to helper/TQDM/README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
33626feb44
commit
2447b3c290
1 changed files with 0 additions and 0 deletions
34
helper/TQDM/README.md
Normal file
34
helper/TQDM/README.md
Normal file
|
@ -0,0 +1,34 @@
|
|||
# [TQDM](https://tqdm.github.io/) -- Make your progress visible
|
||||
{:.no_toc}
|
||||
|
||||
<nav markdown="1" class="toc-class">
|
||||
* TOC
|
||||
{:toc}
|
||||
</nav>
|
||||
|
||||
## 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
|
||||
30%|███ | 3/10 [00:03<00:07, 1.12s/it]
|
||||
```
|
||||
|
||||
Beside trange, [TQDM](https://tqdm.github.io/) can be used for more elaborated setups.
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue