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:
print(para.Start.ParaStyleName)
para.Start.ParaStyleName = "Table Headings"
Thanks, that helped.