-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Allow modifying kernel associated with a session via PATCH #1206
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
Conversation
self.assertEqual(changed['id'], sid) | ||
self.assertEqual(changed['notebook']['path'], 'nb2.ipynb') | ||
|
||
def test_amodify_kernel_name(self): |
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.
(sp.)
👍, thanks Min! |
df9a2aa
to
8cba734
Compare
I confirmed this works for me on upcoming PRs to jupyter-js-services and jupyter-js-notebook. |
kernel_id = yield sm.start_kernel_for_session( | ||
session_id, kernel_name=kernel_name, path=before['notebook']['path']) | ||
changes['kernel_id'] = kernel_id | ||
if 'id' in model['kernel']: |
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.
I'm sending null
if the id
is not given, do you mind checking for that here?
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.
Good call. Done.
@minrk, see also the spelling error above. |
- PATCH to kernel.id attaches to other kernel - PATCH to kernel.name starts new kernel with given name Previous kernel is shutdown after the change
55db28a
to
23b1bea
Compare
Allow modifying kernel associated with a session via PATCH
…ssion via PATCH - PATCH to kernel.id attaches to other kernel - PATCH to kernel.name starts new kernel with given name Previous kernel is shutdown after the change ...
…ssion via PATCH - PATCH to kernel.id attaches to other kernel - PATCH to kernel.name starts new kernel with given name Previous kernel is shutdown after the change ...
Previous kernel is shutdown after the change
cc @blink1073