-
-
Notifications
You must be signed in to change notification settings - Fork 396
Use supported_features=['debugger'] in kernel info reply #1296
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
Use supported_features=['debugger'] in kernel info reply #1296
Conversation
71217b3 to
0d31b53
Compare
70767fa to
8298e05
Compare
|
|
||
| supported_features: list[str] = [] | ||
| if self._supports_kernel_subshells: | ||
| supported_features.append("kernel subshells") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to have "kernel", or could we just put "subshells"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"kernel subshells" is what is says in the JEP (https://github.com/jupyter/enhancement-proposals/blob/master/kernel-subshells/kernel-subshells.md#identify-optional-feature) so that is what it must be.
I don't understand, it seems that this PR does both add |
No, "kernel subshells" was already there but I've rearranged the code a little. |
|
Ah yes I see. |
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
JEP92 added support for optional features to be included in kernel info reply messages via the
supported_featuresattribute, with subshells and debugger being examples. We are already using it for subshells, this PR also addsdebuggerto the list ofsupported_featuresifdebugpyis importable.Corresponding documentation PR in
jupyter_clientfor messaging protocol is jupyter/jupyter_client#1045.This replaces the use of
kernel_info_reply['debugger']which should be considered deprecated but cannot be removed until downstream libraries adopt reading thesupported_featuresrather thandebuggerattribute directly.