def METHOD_NAME(self, interpreter):
    """Set given interpreter as the current selected one."""
    self._add_to_custom_interpreters(interpreter)
    self.set_conf("default", False)
    self.set_conf("custom", True)
    self.set_conf("custom_interpreter", interpreter)
    self.set_conf("executable", interpreter)