Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: None
    • Labels:
      None

      Description

      The progress bar implementation depends on how terminal treat carriage return '\r'. "carriage return" which causes all text after it to be echoed at the beginning of the line.

      Here's the sample code which implement progress bar that works in jupyter but not in zeppelin. I think we just need to tweet the zeppelin front to handle carriage return '\r' properly. I already make ipython interpreter support streaming output in pr-2474. The left work is in frontend. Hoon Park Could you help on this ticket ? Thanks

      references: https://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console/27871113#comment50529068_27871113

      import time,sys
      
      for i in range(100+1):
          time.sleep(0.1)
          print(('='*i)+(''*(100-i))+("\r [ %d"%i+"% ] "))
          sys.stdout.flush()
          
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prabhjyotsingh Prabhjyot Singh
                Reporter:
                zjffdu Jeff Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: