Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from .export import completer as export_completer
from .manipfolders import copy_completer, delete_completer
import pylada
# loads interactive files
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: