src/orion/core/io/interactive_commands/branching_prompt.py
def complete_name(self, text, line, begidx, endidx):
        """Auto-completion of experiment name based on names in the EVC three."""
        if len(line.split(" ")) >= 3:
            names = []
        else:
            query = {
                "refers.root_id": self.branch_builder.experiment_config["refers"][
                    "root_id"
                ],
                "metadata.user": self.branch_builder.experiment_config["metadata"][
                    "user"
                ],
            }
            names = [
                experiment["name"]
                for experiment in get_storage().fetch_experiments(query)
            ]

        return self._get_completions(names, text)
Auto-completion of experiment name based on names in the EVC three.
Auto-completion of experiment name based on names in the EVC three.
Auto - completion of experiment name based on names in the EVC three .
def complete_name(self, text, line, begidx, endidx):
        if len(line.split(" ")) >= 3:
            names = []
        else:
            query = {
                "refers.root_id": self.branch_builder.experiment_config["refers"][
                    "root_id"
                ],
                "metadata.user": self.branch_builder.experiment_config["metadata"][
                    "user"
                ],
            }
            names = [
                experiment["name"]
                for experiment in get_storage().fetch_experiments(query)
            ]
        return self._get_completions(names, text)
def complete_name ( self , text , line , begidx , endidx ) : if len ( line . split ( " " ) ) >= 3 : names = [ ] else : query = { "refers.root_id" : self . branch_builder . experiment_config [ "refers" ] [ "root_id" ] , "metadata.user" : self . branch_builder . experiment_config [ "metadata" ] [ "user" ] , } names = [ experiment [ "name" ] for experiment in get_storage ( ) . fetch_experiments ( query ) ] return self . _get_completions ( names , text )
Auto-completion of experiment name based on names in the EVC three.
Auto - completion of experiment name based on names in the EVC three .
"""Auto-completion of experiment name based on names in the EVC three."""
self
text
line
begidx
endidx