From 80c278aa34e3e324f7cddbffbae8a3ab0a71acdf Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sun, 4 Nov 2018 14:38:39 +0000 Subject: [PATCH] Fix starting a kernel when modifying a session --- notebook/services/sessions/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/services/sessions/handlers.py b/notebook/services/sessions/handlers.py index 9075756e69..c97a726bf2 100644 --- a/notebook/services/sessions/handlers.py +++ b/notebook/services/sessions/handlers.py @@ -133,7 +133,7 @@ def patch(self, session_id): changes['kernel_id'] = kernel_id elif model['kernel'].get('name') is not None: kernel_name = model['kernel']['name'] - kernel_id = yield sm.start_kernel_for_session( + kernel_id = sm.start_kernel_for_session( session_id, kernel_name=kernel_name, name=before['name'], path=before['path'], type=before['type']) changes['kernel_id'] = kernel_id