code: def render_html(html_str):
      
      import utool as ut
      from os.path import abspath
      import webbrowser
  
      try:
          html_str = html_str.decode('utf8')
      except Exception:
          pass
  
      html_dpath = ut.ensure_app_resource_dir('utool', 'temp_html')
      fpath = abspath(ut.unixjoin(html_dpath, 'temp.html'))
      url = 'file://' + fpath
      ut.writeto(fpath, html_str)
      webbrowser.open(url)
docs: makes a temporary html rendering