code: def plot_interactive(mergepkl, noisepkl=None, thresh=6.0, thresh_link=7.0, ignoret=None, savehtml=True, url_path='plots'):
      
  
      data = readdata(mergepkl)
      circleinds = calcinds(data, thresh, ignoret)
      crossinds = calcinds(data, -1*thresh, ignoret)
      edgeinds = calcinds(data, thresh_link, ignoret)
  
      workdir = os.path.dirname(mergepkl)
      fileroot = os.path.basename(mergepkl).rstrip('_merge.pkl').lstrip('cands_')
  
      logger.info('Total on target time: {} s'.format(calcontime(data, inds=circleinds+crossinds+edgeinds)))
  
      if noisepkl:
          noiseplot = plotnoisecum(noisepkl)
      else:
          noiseplot = None
  
      combined = plotall(data, circleinds=circleinds, crossinds=crossinds, edgeinds=edgeinds,
                         htmlname=None, noiseplot=noiseplot, url_path=url_path, fileroot=fileroot)
  
      if savehtml:
          output_file(mergepkl.rstrip('.pkl') + '.html')
          save(combined)
      else:
          return combined
docs: Backwards compatible function for making interactive candidate summary plot