gspread/models.py
def update_note(self, cell, content):
        """Update the content of the note located at `cell`.

        :param str cell: A string with cell coordinates in A1 notation,
            e.g. 'D7'.
        :param str note: The text note to insert.

        .. versionadded:: 3.7
        """

        if not isinstance(content, str):
            raise TypeError("Only string allowed as content for a note.")

        (startRow, startColumn) = a1_to_rowcol(cell)

        body = {
            "requests": [
                {
                    "updateCells": {
                        "range": {
                            "sheetId": self.id,
                            "startRowIndex": startRow - 1,
                            "endRowIndex": startRow,
                            "startColumnIndex": startColumn - 1,
                            "endColumnIndex": startColumn,
                        },
                        "rows": [
                            {
                                "values": [
                                    {
                                        "note": content
                                    }
                                ]
                            }
                        ],
                        "fields": "note"
                    }
                }
            ]
        }
        self.spreadsheet.batch_update(body)
Update the content of the note located at `cell`.

        :param str cell: A string with cell coordinates in A1 notation,
            e.g. 'D7'.
        :param str note: The text note to insert.

        .. versionadded:: 3.7
        
Update the content of the note located at `cell`.
Update the content of the note located at ` cell ` .
def update_note(self, cell, content):
        if not isinstance(content, str):
            raise TypeError("Only string allowed as content for a note.")
        (startRow, startColumn) = a1_to_rowcol(cell)
        body = {
            "requests": [
                {
                    "updateCells": {
                        "range": {
                            "sheetId": self.id,
                            "startRowIndex": startRow - 1,
                            "endRowIndex": startRow,
                            "startColumnIndex": startColumn - 1,
                            "endColumnIndex": startColumn,
                        },
                        "rows": [
                            {
                                "values": [
                                    {
                                        "note": content
                                    }
                                ]
                            }
                        ],
                        "fields": "note"
                    }
                }
            ]
        }
        self.spreadsheet.batch_update(body)
def update_note ( self , cell , content ) : if not isinstance ( content , str ) : raise TypeError ( "Only string allowed as content for a note." ) ( startRow , startColumn ) = a1_to_rowcol ( cell ) body = { "requests" : [ { "updateCells" : { "range" : { "sheetId" : self . id , "startRowIndex" : startRow - 1 , "endRowIndex" : startRow , "startColumnIndex" : startColumn - 1 , "endColumnIndex" : startColumn , } , "rows" : [ { "values" : [ { "note" : content } ] } ] , "fields" : "note" } } ] } self . spreadsheet . batch_update ( body )
Update the content of the note located at `cell`.
Update the content of the note located at ` cell ` .
"""Update the content of the note located at `cell`.

        :param str cell: A string with cell coordinates in A1 notation,
            e.g. 'D7'.
        :param str note: The text note to insert.

        .. versionadded:: 3.7
        """
self
cell
A string with cell coordinates in A1 notation,
e.g. 'D7'.
A string with cell coordinates in A1 notation e . g . ' D7 ' .
content
note
The text note to insert.
versionadded:: 3.7
The text note to insert . versionadded :: 3 . 7