I am using Python in a Linux (Ubuntu) environment.
How do I go about writing a comment into a cell in an Excel file (say,MyFile.xls)?
I know that it is possible to write values. Yet, how do I go about writing a comment?
On Windows (with Excel installed) you could use COM from Python: this class wraps it nicely for you.
But on Linux, you'll need to use xlwt.
I'm looking into this myself and found https://bitbucket.org/ericgazoni/openpyxl/wiki/Home . It is a new library that allows editing xlsx files. I'm not sure if it allows editing comments though.
.xlsis much preferred (as I don't haveOffice 2007)..xlsxis just XML files in a zip archive, and Python knows how to deal with both of those..xlsis much harder.comment. my question was, how do I get (from withinpython) to write acommentfor some cell?