title: Ironpython Spotfire / Export to html file
body: <p>I've seen ways to export to excel or to a pdf through ironpython but what I really need is to create a html file with a ironpython script.</p>
  
  <p>Right now I'm using this line of code but I'm able to create the document. </p>
  
  <pre><code>with open("C:\\Users\\output\\testfile.html","w") as file:
      file.write(htmlReport)
  </code></pre>