Forums

NbConvertApp timeout Error

Hi to all,

i have a scheduled a task that run and create an html from ipython notebook the task run this command

ipython nbconvert --to=html --ExecutePreprocessor.enabled=True /home/***/***

But i recive an timeout error (i have no problem running this command on console)

[NbConvertApp] Converting notebook /home/**** to html
[NbConvertApp] Executing notebook with kernel: python3.5
[NbConvertApp] ERROR | Timeout waiting for execute reply (30s).
                If your cell should take longer than this, you can increase the timeout with:

                    c.ExecutePreprocessor.timeout = SECONDS

                in jupyter_nbconvert_config.py

i find and i try to edit jupyter_nbconvert_config.py in /etc but i havn't permission. How i can do to solve the problem?

thank to all!

According to the nbconvert docs you can specify options like that on the command line, just like you do with the ExecutePreprocessor.enabled flag. So:

ipython nbconvert --to=html --ExecutePreprocessor.enabled=True --ExecutePreprocessor.timeout=300  /home/***/***

Thank You a Lot! :)

No problem!