gregsexton / ob-ipython

org-babel integration with Jupyter for evaluation of (Python by default) code blocks
737 stars 111 forks source link

Async execution impossible after kernel kill #205

Open moritzschaefer opened 5 years ago

moritzschaefer commented 5 years ago

When killing a kernel (ob-ipython-kill-kernel), it is impossible to run async code blocks. They will be put to the execution queue (ob-ipython--async-queue), yet execution does not start. The reason for this is that ob-ipython-kill-kernel kills the kernel, but not the main ipython process. As a result, when a new async block is executed, it detects two things:

Suggested solutions:

I just had a brief look at the relevant code am not so familiar with it so I'm curious what others think of this issue

moritzschaefer commented 4 years ago

Unfortunately there is nothing like a "reset button" for the whole system (at least I am not aware of it). So the only possibility to fix things is to restart emacs.