fopp icon indicating copy to clipboard operation
fopp copied to clipboard

mention sys.setExecutionLimit in turtle section

Open presnick opened this issue 10 months ago • 1 comments

Especially for schools with chromebooks, they may even need to increase execution limits on some non-turtle code later in the book.

Currently, this is offered in the Monte Carlo simulation project page, but not anywhere in the main text:


Note

Extending the Time Limit

When doing a long running simulation like the pi calculation you may run up against the time limit we have set for your program. 25 seconds. to increase the time you can do the following in your program:

import sys sys.setExecutionLimit(60000) That ups the time limit to 60 seconds. The value you pass is in milliseconds.

presnick avatar Feb 28 '25 11:02 presnick