-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
base: main
Are you sure you want to change the base?
Use supported_features=['debugger'] in kernel info reply #1296
Conversation
71217b3
to
0d31b53
Compare
70767fa
to
8298e05
Compare
for more information, see https://pre-commit.ci
|
||
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. |
JEP92 added support for optional features to be included in kernel info reply messages via the
supported_features
attribute, with subshells and debugger being examples. We are already using it for subshells, this PR also addsdebugger
to the list ofsupported_features
ifdebugpy
is importable.Corresponding documentation PR in
jupyter_client
for 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_features
rather thandebugger
attribute directly.