code: def progress_bar_notebook(iteration, total=100):
      """Progress bar for notebooks.
  
      Parameters
      ----------
      iteration: int
          current iteration
      total: int
          total iterations
  
      Returns
      -------
          Progress bar for notebooks
  
      """
      result = int((iteration / total) * 100)
      return HTML(
          """
                <p>
                    Progress: {result}% Complete
                <p/>
                <progress
                    value='{value}'
                    max='{max_value}',
                    style='width: 25%',
                >
                    {value}
                </progress>
  
      """.format(
              value=iteration, max_value=total, result=result
          )
      )
  
imports: from IPython.display import HTML
  from IPython import get_ipython
label_desc: Use image node_id 2 for calling a global function with example usage: progress_bar_notebook(iteration, total) and returns: HTML