Skip to content

Commit

Permalink
document dask
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Mar 5, 2021
1 parent 9328ed3 commit 1bbfa2a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .meta/.readme.rst
Expand Up @@ -832,6 +832,24 @@ A ``keras`` callback is also available:
model.fit(..., verbose=0, callbacks=[TqdmCallback()])
Dask Integration
~~~~~~~~~~~~~~~~

A ``dask`` callback is also available:

.. code:: python
from tqdm.dask import TqdmCallback
with TqdmCallback(desc="compute"):
...
arr.compute()
# or use callback globally
cb = TqdmCallback(desc="global")
cb.register()
arr.compute()
IPython/Jupyter Integration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
18 changes: 18 additions & 0 deletions README.rst
Expand Up @@ -1051,6 +1051,24 @@ A ``keras`` callback is also available:
model.fit(..., verbose=0, callbacks=[TqdmCallback()])
Dask Integration
~~~~~~~~~~~~~~~~

A ``dask`` callback is also available:

.. code:: python
from tqdm.dask import TqdmCallback
with TqdmCallback(desc="compute"):
...
arr.compute()
# or use callback globally
cb = TqdmCallback(desc="global")
cb.register()
arr.compute()
IPython/Jupyter Integration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 1bbfa2a

Please sign in to comment.