nbmake icon indicating copy to clipboard operation
nbmake copied to clipboard

Test session with `nbmake` doesn't terminate on keyboard interrupt

Open jklaise opened this issue 2 years ago • 1 comments

Describe the bug A running test session with e.g.pytest --nbmake *.ipynb cannot be terminated with Ctrl-C, the nbmake . The only way to terminate the test session was to kill the pytest process with SIGKILL.

To Reproduce Run test session on multiple notebooks with a glob:

pytest --nbmake *.ipynb

Then try to terminate it with Ctrl+C.

jklaise avatar Sep 15 '21 15:09 jklaise

Apologies I never replied to this one, I'm aware the nbclient spins up subprocesses to emulate the notebook environment. It's likely we are not handling the SIGKILL signal correctly which is causing it to hang.

This would be a good quality of life improvement and requires a bit of investigation as to how we solve it.

alex-treebeard avatar Feb 12 '23 17:02 alex-treebeard