def _run_command(self, packet):
create_temp_cli = self.client_states is None<EOL>if create_temp_cli:<EOL><INDENT>pane_id = int(packet['<STR_LIT>'])<EOL>self._create_app()<EOL>with set_app(self.client_state.app):<EOL><INDENT>self.pymux.arrangement.set_active_window_from_pane_id(pane_id)<EOL><DEDENT><DEDENT>with set_app(self.client_state.app):<EOL><INDENT>try:<EOL><INDENT>self.pymux.handle_command(packet['<STR_LIT:data>'])<EOL><DEDENT>finally:<EOL><INDENT>self._close_connection()<EOL><DEDENT><DEDENT>
Execute a run command from the client.