Just got this to work! 

What I was looking for was a way to differentiate this one particular 
Runtime errors from the other runtime errors:

except RuntimeError as e:
                if "Cell execution timed out" in e.message:
                    raise e

The above snippet seems to do the job. 

Thank you

On Friday, October 14, 2016 at 6:56:46 PM UTC+5:30, takowl wrote:
> On 14 October 2016 at 11:30, Sreehari S <sree...@gmail.com <javascript:>> 
> wrote:
>> But in python 2.6/2.7, a RuntimeError results (as documented here : 
>> https://github.com/jupyter/nbconvert/blob/master/nbconvert/preprocessors/execute.py#L48
>>  )
>> How do I handle this? 
> Catch RuntimeError?
> You can also set no timeout if that's what you want, but then a cell that 
> runs forever will keep running.

You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jupyter+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to