Skip to content
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

nbconvert timeout on long computations #8382

Closed
cstjean opened this issue Apr 27, 2015 · 1 comment
Closed

nbconvert timeout on long computations #8382

cstjean opened this issue Apr 27, 2015 · 1 comment
Milestone

Comments

@cstjean
Copy link

cstjean commented Apr 27, 2015

When running a long computation through ipython nbconvert, I will get a timeout ERROR. For instance, with the notebook containing just one cell:

from time import sleep
sleep(120)

Running it with

ipython nbconvert Testing_IPython.ipynb --ExecutePreprocessor.enabled=True --to html --output Executed --output Testing_IPython.html

Yields:

[NbConvertApp] ERROR | Timeout waiting for execute reply
[NbConvertApp] ERROR | failed to run cell: Empty()
[NbConvertApp] ERROR | from time import sleep

It seems that the exception comes from this line, @tritemio. Is there any way to manually set the timeout? The documentation for nbconvert is out-of-date.

@takluyver
Copy link
Member

The timeout is configurable. Set c.ExecutePreprocessor.timeout in the config file, or pass --ExecutePreprocessor.timeout=180 at the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants