-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to disable ExecutePreprocessor.timeout #256
Comments
I would say yes according to the list of option of execute preprocessor:
You can also find that on the documentation page The request to have a value of 0, or negative actually disable is not too far fetched. |
I don't think any of those options do what was requested - allow_errors is just for errors raised in the kernel, not for timeout errors. I think making 0 mean no timeout would make sense, but I wouldn't make it the default. This isn't quite like executing a script, because you can't see any output until it's finished (among other things). |
Ok, I missunderstood the options then. |
I think @takluyver, I think it's odd to have a program kill itself by default. Most new users will not be aware of this "feature" and will only become aware of it through debugging, which is frustrating. However, having a computation run for a long time is an expected behavior, which users will investigate solutions for should it be a problem. It's also arbitrary to pick a specific default timeout, when the desired value is highly application dependent. |
I believe |
In general, for timeouts it is common to use either |
Are you sure? It looks to me like it's getting passed to |
@takluyver yes, |
OK, then I'd be in favour of just documenting the behaviour with -1. |
I see how 0 meaning no wait is the most intuitive behavior and also a potentially valuable option in certain situations.
Agreed, I can close the issue once the documentation is updated to specify this option. |
Cf jupyter#260 for implementation and closes jupyter#256
Cf jupyter#260 for implementation and closes jupyter#256
Is there a value for
--ExecutePreprocessor.timeout
that will disable the per-cell timer? I want my notebooks cells to run until completion, no matter how long that takes.I'd venture further and propose that the default should be to have no timeout. As the notebook ecosystem progresses, I expect people to want to automate their analysis pipelines, which will include notebooks. When you're using nbconvert to run all inplace, the timeout is unwanted. It's as if
python script.py
had a timeout enabled by default.The text was updated successfully, but these errors were encountered: