Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test session with nbmake doesn't terminate on keyboard interrupt #45

Open
jklaise opened this issue Sep 15, 2021 · 1 comment
Open

Test session with nbmake doesn't terminate on keyboard interrupt #45

jklaise opened this issue Sep 15, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@jklaise
Copy link

jklaise commented Sep 15, 2021

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.

@alex-treebeard alex-treebeard added the bug Something isn't working label Jul 19, 2022
@alex-treebeard
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants