diff --git a/jupyter_client/manager.py b/jupyter_client/manager.py index 0c489d3d4..fdae9a701 100644 --- a/jupyter_client/manager.py +++ b/jupyter_client/manager.py @@ -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()