class_docstr: A progress publisher that publishes to an IPython/Jupyter widget.
      
class_docstr_tok: ["A","progress","publisher","that","publishes","to","an","IPython\/Jupyter","widget","."]
docstr: Helper method for displaying total execution time of a Pipeline.
  
  Parameters
  ----------
  total_seconds : float
      Number of seconds elapsed.
  
  Returns
  -------
  formatted : str
      User-facing text representation of elapsed time.
docstr_tok: ["Helper","method","for","displaying","total","execution","time","of","a","Pipeline",".","Parameters","--","--","--","--","--","total_seconds",":","float","Number","of","seconds","elapsed",".","Returns","--","--","--","-","formatted",":","str","User-facing","text","representation","of","elapsed","time","."]
code: def _format_execution_time(total_seconds):
      """Helper method for displaying total execution time of a Pipeline.
  
      Parameters
      ----------
      total_seconds : float
          Number of seconds elapsed.
  
      Returns
      -------
      formatted : str
          User-facing text representation of elapsed time.
      """
  
      def maybe_s(n):
          if n == 1:
              return ""
          return "s"
  
      minutes, seconds = divmod(total_seconds, 60)
      minutes = int(minutes)
      if minutes >= 60:
          hours, minutes = divmod(minutes, 60)
          t = "{hours} Hour{hs}, {minutes} Minute{ms}, {seconds:.2f} Seconds"
          return t.format(
              hours=hours,
              hs=maybe_s(hours),
              minutes=minutes,
              ms=maybe_s(minutes),
              seconds=seconds,
          )
      elif minutes >= 1:
          t = "{minutes} Minute{ms}, {seconds:.2f} Seconds"
          return t.format(
              minutes=minutes,
              ms=maybe_s(minutes),
              seconds=seconds,
          )
      else:
          return "{seconds:.2f} Seconds".format(seconds=seconds)
  
imports: from collections import namedtuple
  import time
  from interface import implements
  from zipline.utils.compat import contextmanager, escape_html
  from zipline.utils.string_formatting import bulleted_list
  from .iface import PipelineHooks
label_desc: Use image node_id 7 for calling the IPythonWidgetProgressPublisher obj's underlying member method code with example usage: obj._format_execution_time(total_seconds) and returns: str, t, str, t, str