You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by GitBox <gi...@apache.org> on 2019/02/11 03:40:50 UTC

[GitHub] zjffdu commented on issue #3302: [ZEPPELIN-3988] Paragraph Text output includes \r\n is not displayed correctly.

zjffdu commented on issue #3302: [ZEPPELIN-3988] Paragraph Text output includes \r\n is not displayed correctly.
URL: https://github.com/apache/zeppelin/pull/3302#issuecomment-462212340
 
 
   @Leemoonsoo I tested this PR, but unfortunately it break the function of progress bar that #2729 implements. Progress bar is very important in machine learning libraries, specially for deep learning libraries, such as tensorflow, keras. Is it possible to keep the progress bar behavior ?  You can use the following code snippet to test the progress bar. 
   
   ```
   import time,sys
   end_val = 10
   bar_length = 20
   for i in xrange(0, end_val + 1):
       time.sleep(0.5)
       percent = float(i) / end_val
       hashes = '#' * int(round(percent * bar_length))
       spaces = ' ' * (bar_length - len(hashes))
       sys.stdout.write("\rPercent: [{0}] {1}%".format(hashes + spaces, int(round(percent * 100))))
       #print "Percent: [{0}] {1}%".format(hashes + spaces, int(round(percent * 100)))
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services