How to use the ipython.launch.array.completer function in ipython

To help you get started, we’ve selected a few ipython examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pylada / pylada-light / ipython / launch / __init__.py View on Github external
from .asone import completer as asone_completer
    from .array import completer as array_completer
    from .single import completer as single_completer
    from ... import qsub_array_exe

    data = info.line.split()[1:]
    if "scattered" in data:
        return scattered_completer(self, info, data)
    elif "interactive" in data:
        return interactive_completer(self, info, data)
    elif "asone" in data:
        return asone_completer(self, info, data)
    elif "single" in data:
        return single_completer(self, info, data)
    elif qsub_array_exe is not None and "array" in data:
        return array_completer(self, info, data)
    result = ["scattered", "interactive", 'asone', 'single', '--help']
    return result + ['array'] if qsub_array_exe is not None else result