You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_tqdm.py 939 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. """
  4. Created on Fri Apr 3 10:38:59 2020
  5. @author: ljia
  6. """
  7. from tqdm import tqdm
  8. import sys
  9. print('start')
  10. for i in tqdm(range(10000000), file=sys.stdout):
  11. x = i
  12. # print(x)
  13. # =============================================================================
  14. # summary
  15. # terminal, IPython 7.0.1 (Spyder 4): Works.
  16. # write to file: does not work. Progress bar splits as the progress goes.
  17. # Jupyter:
  18. # =============================================================================
  19. # for i in tqdm(range(10000000)):
  20. # x = i
  21. # print(x)
  22. # =============================================================================
  23. # summary
  24. # terminal, IPython 7.0.1 (Spyder 4): does not work. When combines with other
  25. # print, progress bar splits.
  26. # write to file: does not work. Cannot write progress bar to file.
  27. # Jupyter:
  28. # =============================================================================

A Python package for graph kernels, graph edit distances and graph pre-image problem.