Skip to content

Commit c656351

Browse files
committed
initial commit
1 parent 858b6a7 commit c656351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/services/kernels/kernelmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async def start_kernel(self, kernel_id=None, path=None, **kwargs):
179179
The name identifying which kernel spec to launch. This is ignored if
180180
an existing kernel is returned, but it may be checked in the future.
181181
"""
182-
if kernel_id is None:
182+
if kernel_id is None or kernel_id not in self:
183183
if path is not None:
184184
kwargs['cwd'] = self.cwd_for_path(path)
185185
kernel_id = await ensure_async(self.pinned_superclass.start_kernel(self, **kwargs))

0 commit comments

Comments
 (0)