code: def save_file(self, filename = 'StockChart'):
          
          filename = filename + '.html'
          
          with open(filename, 'w') as f:
              #self.buildhtml()
              f.write(self.htmlcontent)
          
          f.closed
docs: save htmlcontent as .html file