class_docstr: Hooks implementation for displaying progress.
  
  Parameters
  ----------
  publisher_factory : callable
      Function producing a new object with a ``publish()`` method that takes
      a ``ProgressModel`` and publishes progress to a consumer.
class_docstr_tok: ["Hooks","implementation","for","displaying","progress",".","Parameters","--","--","--","--","--","publisher_factory",":","callable","Function","producing","a","new","object","with","a","``","publish","(",")","``","method","that","takes","a","``","ProgressModel","``","and","publishes","progress","to","a","consumer","."]
code: def __init__(self, publisher_factory):
      self._publisher_factory = publisher_factory
      self._reset_transient_state()
  
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 1 to create a new ProgressHooks object from inherited base classes:  with example: obj = ProgressHooks(publisher_factory)