Print a message via tqdm (without overlap with bars).
(cls, s, file=None, end="\n", nolock=False)
| 715 | |
| 716 | @classmethod |
| 717 | def write(cls, s, file=None, end="\n", nolock=False): |
| 718 | """Print a message via tqdm (without overlap with bars).""" |
| 719 | fp = file if file is not None else sys.stdout |
| 720 | with cls.external_write_mode(file=file, nolock=nolock): |
| 721 | # Write the message |
| 722 | fp.write(s) |
| 723 | fp.write(end) |
| 724 | |
| 725 | @classmethod |
| 726 | @contextmanager |