parameters: (self, id)
docstring: Shutdown a kernel by UUID
docstring_summary: Shutdown a kernel by UUID
docstring_tokens: Shutdown a kernel by UUID
function: def _cmd_stpk(self, id):
          """Shutdown a kernel by UUID"""
          while True:
              try:
                  kernelUUID = read_string(self.conn)
                  break
              except socket.timeout:
                  pass
  
          self.stopKernel(kernelUUID)
  
          with self.send_lock:
              write_bytes(self.conn, jediSocketServer._STPK)
              write_string(self.conn, id)
function_tokens: def _cmd_stpk ( self , id ) : while True : try : kernelUUID = read_string ( self . conn ) break except socket . timeout : pass self . stopKernel ( kernelUUID ) with self . send_lock : write_bytes ( self . conn , jediSocketServer . _STPK ) write_string ( self . conn , id )