class_docstr: A simple text progress bar suitable for both the IPython notebook
  and the IPython interactive prompt.
  
  ProgressBars are automatically nested if a previous instantiated
  progress bars has not achieved 100% completion.
class_docstr_tok: ["A","simple","text","progress","bar","suitable","for","both","the","IPython","notebook","and","the","IPython","interactive","prompt",".","ProgressBars","are","automatically","nested","if","a","previous","instantiated","progress","bars","has","not","achieved","100","%","completion","."]
code: def _stdout_display(self, percentage, display=True):
      if clear_output:
          clear_output()
      percent_per_char = 100.0 / self.width
      char_count = int(
          math.floor(percentage / percent_per_char)
          if percentage < 100.0
          else self.width
      )
      blank_count = self.width - char_count
      prefix = "\n" if len(self.current_progress) > 1 else ""
      self.out = prefix + (
          "{}[{}{}] {:0.1f}%".format(
              self.label + ":\n" if self.label else "",
              self.fill_char * char_count,
              " " * len(self.fill_char) * blank_count,
              percentage,
          )
      )
      if display:
          sys.stdout.write(
              "".join([pg.out for pg in self.current_progress])
          )
          sys.stdout.flush()
          time.sleep(0.0001)
  
imports: import math
  import sys
  import time
  import param
  from IPython.core.display import clear_output
  from ..core.util import ProgressIndicator
label_desc: Use image node_id 3 for calling the ProgressBar obj's underlying member method code with example usage: obj._stdout_display(percentage, display) without return types