@@ -140,7 +140,7 @@ Changelog
140140The list of all changes is available either on GitHub's Releases:
141141|GitHub-Status |, on the
142142`wiki <https://github.com/tqdm/tqdm/wiki/Releases >`__, or on the
143- `website <https://tqdm.github.io/releases/ >`__.
143+ `website <https://tqdm.github.io/releases >`__.
144144
145145
146146Usage
@@ -679,7 +679,10 @@ Submodules
679679 """ `rich.progress` version."""
680680
681681 class tqdm.keras.TqdmCallback(keras.callbacks.Callback):
682- """ `keras` callback for epoch and batch progress."""
682+ """ Keras callback for epoch and batch progress."""
683+
684+ class tqdm.dask.TqdmCallback(dask.callbacks.Callback):
685+ """ Dask callback for task progress."""
683686
684687
685688 ``contrib ``
@@ -689,8 +692,8 @@ The ``tqdm.contrib`` package also contains experimental modules:
689692
690693- ``tqdm.contrib.itertools ``: Thin wrappers around ``itertools ``
691694- ``tqdm.contrib.concurrent ``: Thin wrappers around ``concurrent.futures ``
692- - ``tqdm.contrib.discord ``: Posts to `Discord <https://discord.com/ >`__ bots
693- - ``tqdm.contrib.telegram ``: Posts to `Telegram <https://telegram.org/ >`__ bots
695+ - ``tqdm.contrib.discord ``: Posts to `Discord <https://discord.com >`__ bots
696+ - ``tqdm.contrib.telegram ``: Posts to `Telegram <https://telegram.org >`__ bots
694697- ``tqdm.contrib.bells ``: Automagically enables all optional features
695698
696699 * ``auto ``, ``pandas ``, ``discord ``, ``telegram ``
@@ -1048,6 +1051,24 @@ A ``keras`` callback is also available:
10481051
10491052 model.fit(... , verbose = 0 , callbacks = [TqdmCallback()])
10501053
1054+ Dask Integration
1055+ ~~~~~~~~~~~~~~~~
1056+
1057+ A ``dask `` callback is also available:
1058+
1059+ .. code :: python
1060+
1061+ from tqdm.dask import TqdmCallback
1062+
1063+ with TqdmCallback(desc = " compute" ):
1064+ ...
1065+ arr.compute()
1066+
1067+ # or use callback globally
1068+ cb = TqdmCallback(desc = " global" )
1069+ cb.register()
1070+ arr.compute()
1071+
10511072 IPython/Jupyter Integration
10521073~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10531074
0 commit comments