From 71a7b9456ec5d3f3e0f266c34623e5a1821f9e2e Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Fri, 1 Dec 2023 21:31:01 +0100 Subject: [PATCH] Create README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- TQDM/README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 TQDM/README.md diff --git a/TQDM/README.md b/TQDM/README.md new file mode 100644 index 0000000..df79fbc --- /dev/null +++ b/TQDM/README.md @@ -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. +