gpoore / codebraid

Live code in Pandoc Markdown
BSD 3-Clause "New" or "Revised" License
367 stars 13 forks source link

Jupyter Kernel timeout Option #30

Closed amichuda closed 4 years ago

amichuda commented 4 years ago

I'm creating some tables in codebraid and it takes a while, but after a minute, I get the error:

Jupyter kernel "python3" timed out during execution

I checked the code and I think it might have something to do with:

https://github.com/gpoore/codebraid/blob/f4b98af12066fc504a096fd73ab83741470bc57e/codebraid/codeprocessors/base.py#L1133

Would it be possible to let the jupyter kernel timeout be an option set when running codebraid? I can open a pull request, but I'm not sure whether you would want it exposed in Converter or somewhere else?

gpoore commented 4 years ago

In the last commit, I've added a jupyter_timeout option that you can specify in the first code chunk in a session, right next to jupyter_kernel. It will probably make sense to allow this to be set elsewhere eventually, but there isn't a good way to set options in a centralized location yet.

amichuda commented 4 years ago

Ah! My apologies, I didn't see that option. Thank you!

gpoore commented 4 years ago

You couldn't have seen that option, because I just added it after you opened the issue.