def run(self, no_ipython):

        """
        Runs the shell. Unless no_ipython is True or use_python is False
        then runs IPython shell if that is installed.
        """

        context = self.get_context()
        if not no_ipython:
            try:
                import IPython
                sh = IPython.Shell.IPShellEmbed(banner=self.banner)
                sh(global_ns=dict(), local_ns=context)
                return
            except __HOLE__:
                pass

        code.interact(self.banner, local=context)
dataset/ETHPy150Open danjac/Flask-Script/flaskext/script.py/Shell.run