title: AttributeError: 'Workbook' object has no attribute 'write'
body: <p>Saw several similar posts but they did not solve my issue. Really not sure why the write attribute isn't being recognized. Pip installed all appropriate components.Tried playing around with the parameters for write as well. Any help is appreciated.</p>
  
  <pre><code>import xlsxwriter
  from xlsxwriter import Workbook
  
  wb = Workbook('C:/Users/vlad.synnes/Desktop/workbook.xlsx')
  wb.add_worksheet('Data')
  wb.write('test')
  wb.close()
  send_file('C:/Users/vlad.synnes/Desktop/workbook.xlsx', as_attachment=True)
  </code></pre>