Example #1
0
 def __call__(self, *args, **kwargs):
     with tqdm(
             disable=not self._use_tqdm,
             total=self._total,
             desc=self._desc,
             file=self._file,
     ) as self._pbar:
         return Parallel.__call__(self, *args, **kwargs)
Example #2
0
 def __call__(self, *args, **kwargs):
     fmt = '{desc}: {percentage:3.0f}%|{bar}| [{elapsed}<{remaining}, {rate_fmt}{postfix}]'
     with tqdm(disable=not self._use_tqdm, total=self._total, desc=self._desc, unit=self._unit,
               bar_format=fmt) as self._pbar:
         return Parallel.__call__(self, *args, **kwargs)
Example #3
0
 def __call__(self, *args, **kwargs):
     with notebook_tqdm(disable=not self._use_tqdm,
                        total=self._total) as self._pbar:
         return Parallel.__call__(self, *args, **kwargs)
Example #4
0
 def __call__(self, *args, **kwargs):
     unit_scale = self.chunk_size if self.chunk_size is not None else False
     with tqdm(disable=not self._use_tqdm,
               total=self._total,
               unit_scale=unit_scale) as self._pbar:
         return Parallel.__call__(self, *args, **kwargs)