Skip to content

Commit

Permalink
Merge pull request #695 from mofanke/master
Browse files Browse the repository at this point in the history
fix kernel can only restart once issue
  • Loading branch information
kevin-bates authored Sep 24, 2021
2 parents 1fcf65a + adfd417 commit 7ef616e
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 7ef616e

Please sign in to comment.