Skip to content

Commit 7c42d80

Browse files
committed
document dask
1 parent 3cab883 commit 7c42d80

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.meta/.readme.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,24 @@ A ``keras`` callback is also available:
832832
833833
model.fit(..., verbose=0, callbacks=[TqdmCallback()])
834834
835+
Dask Integration
836+
~~~~~~~~~~~~~~~~
837+
838+
A ``dask`` callback is also available:
839+
840+
.. code:: python
841+
842+
from tqdm.dask import TqdmCallback
843+
844+
with TqdmCallback(desc="compute"):
845+
...
846+
arr.compute()
847+
848+
# or use callback globally
849+
cb = TqdmCallback(desc="global")
850+
cb.register()
851+
arr.compute()
852+
835853
IPython/Jupyter Integration
836854
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
837855

README.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,24 @@ A ``keras`` callback is also available:
10511051
10521052
model.fit(..., verbose=0, callbacks=[TqdmCallback()])
10531053
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+
10541072
IPython/Jupyter Integration
10551073
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10561074

0 commit comments

Comments
 (0)