Skip to content

Commit adfd417

Browse files
committed
Update manager.py
fix kernel can only resstart once issue add reset self.shutting_down in pre_start_kernel
1 parent 1fcf65a commit adfd417

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jupyter_client/manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ async def _async_pre_start_kernel(self, **kw) -> t.Tuple[t.List[str], t.Dict[str
286286
keyword arguments that are passed down to build the kernel_cmd
287287
and launching the kernel (e.g. Popen kwargs).
288288
"""
289+
self.shutting_down = False
289290
self.kernel_id = self.kernel_id or kw.pop('kernel_id', str(uuid.uuid4()))
290291
# save kwargs for use in restart
291292
self._launch_args = kw.copy()

0 commit comments

Comments
 (0)