Skip to content

Commit

Permalink
Update manager.py
Browse files Browse the repository at this point in the history
fix kernel can only resstart once  issue

add reset self.shutting_down in pre_start_kernel
  • Loading branch information
mofanke committed Sep 24, 2021
1 parent 1fcf65a commit adfd417
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jupyter_client/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ async def _async_pre_start_kernel(self, **kw) -> t.Tuple[t.List[str], t.Dict[str
keyword arguments that are passed down to build the kernel_cmd
and launching the kernel (e.g. Popen kwargs).
"""
self.shutting_down = False
self.kernel_id = self.kernel_id or kw.pop('kernel_id', str(uuid.uuid4()))
# save kwargs for use in restart
self._launch_args = kw.copy()
Expand Down

0 comments on commit adfd417

Please sign in to comment.