def quick_completer(cmd, completions):
    
    if isinstance(completions, str):
        completions = completions.split()

    def do_complete(self, event):
        return completions
    
    get_ipython().set_hook('complete_command',do_complete, str_key = cmd)
Easily create a trivial completer for a command.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/core/completerlib.py/quick_completer