How to use the ipython.export.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 / __init__.py View on Github external
pylada.__dict__.update(pylada.__exec_config_files(logger=logger))
    pylada.__dict__.update(
        pylada.__exec_config_files("*.ipy", rcfile=True, logger=logger))
    # now loads extension
    __pylada_is_loaded__ = True
    pylada.interactive = ModuleType('interactive')
    pylada.interactive.jobfolder = None
    pylada.interactive.jobfolder_path = None
    pylada.is_interactive = True
    modules['pylada.interactive'] = pylada.interactive
    ip.register_magics(Pylada)
    ip.set_hook('complete_command', explore_completer, str_key='%explore')
    ip.set_hook('complete_command', goto_completer, str_key='%goto')
    ip.set_hook('complete_command', showme_completer, str_key='%showme')
    ip.set_hook('complete_command', launch_completer, str_key='%launch')
    ip.set_hook('complete_command', export_completer, str_key='%export')
    ip.set_hook('complete_command', copy_completer, str_key='%copyfolder')
    ip.set_hook('complete_command', delete_completer, str_key='%deletefolder')
    if pylada.ipython_verbose_representation is not None:
        pylada.verbose_representation = pylada.ipython_verbose_representation
    if hasattr(pylada, 'ipython_qstat'):

        def dummy(*args, **kwargs):
            return []

        ip.set_hook('complete_command', dummy, str_key='%qdel')
        ip.set_hook('complete_command', dummy, str_key='%qstat')
    # if getattr(pylada, 'jmol_program', None) is not None: