File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -832,6 +832,24 @@ A ``keras`` callback is also available:
832
832
833
833
model.fit(... , verbose = 0 , callbacks = [TqdmCallback()])
834
834
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
+
835
853
IPython/Jupyter Integration
836
854
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
837
855
Original file line number Diff line number Diff line change @@ -1051,6 +1051,24 @@ A ``keras`` callback is also available:
1051
1051
1052
1052
model.fit(... , verbose = 0 , callbacks = [TqdmCallback()])
1053
1053
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
+
1054
1072
IPython/Jupyter Integration
1055
1073
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1056
1074
You can’t perform that action at this time.
0 commit comments