Ask Your Question

Revision history [back]

If the commands run inside your big loop are independent, you can run them independently using the @parallel decorator. You will have to run the commands of your loop as a function, and replace the print statements by some return statements. Indeed, thing printed in a subprocess will not be visible.

See:

  • http://doc.sagemath.org/html/en/reference/parallel/sage/parallel/decorate.html
  • http://doc.sagemath.org/html/en/reference/parallel/index.html