You can proceed by creating an array made of pairs (process id, cell id) and then use the SelectIDs()
function of ParaView to perform the selection.
Example to select cells 1, 20 and 34:
my_ids = [ 0,1, 0,20, 0,34 ]
SelectIDs(my_ids, 'CELL')