Skip to content

Commit 7ef616e

Browse files
authored
Merge pull request #695 from mofanke/master
fix kernel can only restart once issue
2 parents 1fcf65a + adfd417 commit 7ef616e

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)