##// END OF EJS Templates
delete notebook mapping in shutdown_kernel
MinRK -
Show More
@@ -76,7 +76,7 class MappingKernelManager(MultiKernelManager):
76 76 self.remove_kernel(kernel_id, now=True)
77 77
78 78 def start_kernel(self, notebook_id=None, **kwargs):
79 """Start a kernel for a notebok an return its kernel_id.
79 """Start a kernel for a notebook an return its kernel_id.
80 80
81 81 Parameters
82 82 ----------
@@ -102,6 +102,11 class MappingKernelManager(MultiKernelManager):
102 102
103 103 return kernel_id
104 104
105 def shutdown_kernel(self, kernel_id, now=False):
106 """Shutdown a kernel by kernel_id"""
107 super(MappingKernelManager, self).shutdown_kernel(kernel_id, now=now)
108 self.delete_mapping_for_kernel(kernel_id)
109
105 110 # override _check_kernel_id to raise 404 instead of KeyError
106 111 def _check_kernel_id(self, kernel_id):
107 112 """Check a that a kernel_id exists and raise 404 if not."""
General Comments 0
You need to be logged in to leave comments. Login now