parameters: (self, kernelUUID)
docstring: Shutdown a kernel by UUID
docstring_summary: Shutdown a kernel by UUID
docstring_tokens: Shutdown a kernel by UUID
function: def stopKernel(self, kernelUUID):
          """Shutdown a kernel by UUID"""
          try:
              if self.kernelMonitor is not None:
                  self.kernelMonitor.stop()
          finally:
              pass
  
          try:
              kernel_manager = multiKernelManager.get_kernel(kernelUUID)
              kernel_client = kernel_manager.client()
              kernel_client.stop_channels()
          finally:
              pass
  
          try:
              kernel_manager = multiKernelManager.get_kernel(kernelUUID)
              kernel_manager.shutdown_kernel()
          except:
              pass
          finally:
              self.shell_channel = None
              self.kernelMonitor = None
function_tokens: def stopKernel ( self , kernelUUID ) : try : if self . kernelMonitor is not None : self . kernelMonitor . stop ( ) finally : pass try : kernel_manager = multiKernelManager . get_kernel ( kernelUUID ) kernel_client = kernel_manager . client ( ) kernel_client . stop_channels ( ) finally : pass try : kernel_manager = multiKernelManager . get_kernel ( kernelUUID ) kernel_manager . shutdown_kernel ( ) except : pass finally : self . shell_channel = None self . kernelMonitor = None