Skip to content

Conversation

minrk
Copy link
Member

@minrk minrk commented Mar 14, 2016

  • 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

cc @blink1073

self.assertEqual(changed['id'], sid)
self.assertEqual(changed['notebook']['path'], 'nb2.ipynb')

def test_amodify_kernel_name(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(sp.)

@blink1073
Copy link
Contributor

👍, thanks Min!

@minrk minrk force-pushed the patch-session-kernel branch from df9a2aa to 8cba734 Compare March 14, 2016 15:02
@blink1073
Copy link
Contributor

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']:
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Done.

@minrk minrk added this to the 5.0 milestone Mar 15, 2016
@blink1073
Copy link
Contributor

@minrk, see also the spelling error above.

minrk added 3 commits March 16, 2016 09:58
- 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
@minrk minrk force-pushed the patch-session-kernel branch from 55db28a to 23b1bea Compare March 16, 2016 08:58
minrk added a commit that referenced this pull request Mar 21, 2016
Allow modifying kernel associated with a session via PATCH
@minrk minrk merged commit f3e2b02 into jupyter:master Mar 21, 2016
@minrk minrk deleted the patch-session-kernel branch March 21, 2016 09:55
minrk added a commit to minrk/notebook that referenced this pull request Apr 13, 2016
…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

...
@minrk minrk modified the milestones: 4.2, 5.0 Apr 13, 2016
yuvipanda pushed a commit to yuvipanda/notebook that referenced this pull request Jul 26, 2016
…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

...
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants