def _open_local_shell(self):
        imported_objects = self.get_imported_objects()
        try:
            import IPython
        except __HOLE__:
            IPython = None

        if IPython:
            IPython.start_ipython(
                argv=[],
                user_ns=imported_objects,
                banner1='Welcome to the lymph shell'
            )
        else:
            import code
            code.interact(local=imported_objects)
dataset/ETHPy150Open deliveryhero/lymph/lymph/cli/shell.py/ShellCommand._open_local_shell