From 7197da11b367e8c28d366d002bd4c99ce4b60603 Mon Sep 17 00:00:00 2001 From: Stephen L Date: Tue, 1 Dec 2015 21:11:07 +0100 Subject: [PATCH] update README.rst Signed-off-by: Stephen L. --- README.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.rst b/README.rst index 0f123322..4705f641 100644 --- a/README.rst +++ b/README.rst @@ -36,6 +36,9 @@ version is much more visually appealing. ``tqdm`` works on any platform (Linux/Windows/Mac), in any console or in a GUI, and is also friendly with IPython/Jupyter notebooks. +``tqdm`` does not require any library nor curses to run, just a Python +interpreter. + Installation ------------ @@ -277,6 +280,22 @@ In case you're interested in how this works (and how to modify it for your own callbacks), see the `examples `__ folder or import the module and run ``help()``. +Nested progress bars +~~~~~~~~~~~~~~~~~~~~ + +``tqdm`` supports nested progress bars, you just need to specify the +`nested=True` argument for all tqdm instanciation except the most outer bar. +Here's an example: + +.. code:: python + + from tqdm import trange + from time import sleep + + for i in trange(10, desc='1st loop', leave=True): + for j in trange(100, desc='2nd loop', nested=True): + sleep(0.01) + Contributions -------------