class_docstr: A progress par for display in a notebook.
  
  Class attributes (overridden by derived classes)
  
      - **warmup** (`int`) -- The number of iterations to do at the beginning while ignoring `update_every`.
      - **update_every** (`float`) -- Since calling the time takes some time, we only do it every presumed
        `update_every` seconds. The progress bar uses the average time passed up until now to guess the next value
        for which it will call the update.
  
  Args:
      total (`int`):
          The total number of iterations to reach.
      prefix (`str`, *optional*):
          A prefix to add before the progress bar.
      leave (`bool`, *optional*, defaults to `True`):
          Whether or not to leave the progress bar once it's completed. You can always call the
          [`~utils.notebook.NotebookProgressBar.close`] method to make the bar disappear.
      parent ([`~notebook.NotebookTrainingTracker`], *optional*):
          A parent object (like [`~utils.notebook.NotebookTrainingTracker`]) that spawns progress bars and handle
          their display. If set, the object passed must have a `display()` method.
      width (`int`, *optional*, defaults to 300):
          The width (in pixels) that the bar will take.
  
  Example:
  
  ```python
  import time
  
  pbar = NotebookProgressBar(100)
  for val in range(100):
      pbar.update(val)
      time.sleep(0.07)
  pbar.update(100)
  ```
class_docstr_tok: ["A","progress","par","for","display","in","a","notebook",".","Class","attributes","(","overridden","by","derived","classes",")","-","*","*","warmup","*","*","(","`","int","`",")","--","The","number","of","iterations","to","do","at","the","beginning","while","ignoring","`","update_every","`",".","-","*","*","update_every","*","*","(","`","float","`",")","--","Since","calling","the","time","takes","some","time",",","we","only","do","it","every","presumed","`","update_every","`","seconds",".","The","progress","bar","uses","the","average","time","passed","up","until","now","to","guess","the","next","value","for","which","it","will","call","the","update",".","Args",":","total","(","`","int","`",")",":","The","total","number","of","iterations","to","reach",".","prefix","(","`","str","`",",","*","optional","*",")",":","A","prefix","to","add","before","the","progress","bar",".","leave","(","`","bool","`",",","*","optional","*",",","defaults","to","`","True","`",")",":","Whether","or","not","to","leave","the","progress","bar","once","it","'s","completed",".","You","can","always","call","the","[","`","~utils.notebook.NotebookProgressBar.close","`","]","method","to","make","the","bar","disappear",".","parent","(","[","`","~notebook.NotebookTrainingTracker","`","]",",","*","optional","*",")",":","A","parent","object","(","like","[","`","~utils.notebook.NotebookTrainingTracker","`","]",")","that","spawns","progress","bars","and","handle","their","display",".","If","set",",","the","object","passed","must","have","a","`","display","(",")","`","method",".","width","(","`","int","`",",","*","optional","*",",","defaults","to","300",")",":","The","width","(","in","pixels",")","that","the","bar","will","take",".","Example",":","``","`","python","import","time","pbar","=","NotebookProgressBar","(","100",")","for","val","in","range","(","100",")",":","pbar.update","(","val",")","time.sleep","(","0.07",")","pbar.update","(","100",")","``","`"]
code: def display(self):
      self.html_code = html_progress_bar(
          self.value, self.total, self.prefix, self.label, self.width
      )
      if self.parent is not None:
          # If this is a child bar, the parent will take care of the display.
          self.parent.display()
          return
      if self.output is None:
          self.output = disp.display(
              disp.HTML(self.html_code), display_id=True
          )
      else:
          self.output.update(disp.HTML(self.html_code))
  
imports: import re
  import time
  from typing import Optional
  import IPython.display
  from ..trainer_callback import TrainerCallback
  from ..trainer_utils import IntervalStrategy, has_length
label_desc: Use image node_id 4 for calling the NotebookProgressBar obj's underlying member method code with example usage: obj.display() without return types