How do I change the paragraph style inside a table using a macro?

I can iterate through table cells and get their text (strings), but I am not finding a way to access the paragraphs.

Straight out from interactive Jupyter notebook

doc = XSCRIPTCONTEXT.getDocument()
for table in doc.TextTables:
    cell_names = table.CellNames
    for name in cell_names:
        cell = table.getCellByName(name)
        for para in cell.Text:
            para.Start.ParaStyleName = "Table Headings"

Thanks, that helped.