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

quit from attached kernel with keep_kernel=True at console when Ctrl-\ is pressed #126

Closed
lebedov opened this issue Jul 14, 2017 · 3 comments

Comments

@lebedov
Copy link

lebedov commented Jul 14, 2017

In the past, it was possible to exit an ipython console instance connected to a running kernel without terminating the latter by pressing Ctrl-. With ipython 5.3.0, jupyter-console 5.1.0, and ipykernel 4.6.1 (used with Python 2.7.13), this no longer appears to be the case; I have to manually run quit(keep_kernel=True), and Ctrl-\ doesn't have any effect. Does the console frontend catch SIGQUIT? If so, is there some way to enable the old behavior (either programatically or via a config option)?

@takluyver
Copy link
Member

We're not catching SIGQUIT, but I think that prompt_toolkit puts the terminal into a mode where Ctrl-\ is not automatically translated to a signal. We can probably handle it as a shortcut ourselves and implement similar behaviour.

takluyver added a commit to takluyver/jupyter_console that referenced this issue Aug 4, 2017
@takluyver
Copy link
Member

#130 adds Ctrl-\ as a shortcut.

@lebedov
Copy link
Author

lebedov commented Aug 7, 2017

👍

@minrk minrk closed this as completed in #130 Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants