def ipython(self):
        try:
            from IPython.frontend.terminal.embed import TerminalInteractiveShell
            shell = TerminalInteractiveShell()
            shell.mainloop()
        except ImportError:
            # IPython < 0.11
            # Explicitly pass an empty list as arguments, because otherwise
            # IPython would use sys.argv from this script.
            try:
                from IPython.Shell import IPShell
                shell = IPShell(argv=[])
                shell.mainloop()
            except __HOLE__:
                # IPython not found at all, raise ImportError
                raise
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/core/management/commands/shell.py/Command.ipython