environment/lib/python2.7/site-packages/IPython/core/interactiveshell.py
def safe_run_module(self, mod_name, where):
        """A safe version of runpy.run_module().

        This version will never throw an exception, but instead print
        helpful error messages to the screen.

        Parameters
        ----------
        mod_name : string
            The name of the module to be executed.
        where : dict
            The globals namespace.
        """
        try:
            where.update(
                runpy.run_module(str(mod_name), run_name="__main__",
                                 alter_sys=True)
                )
        except:
            self.showtraceback()
            warn('Unknown failure executing module: <%s>' % mod_name)
def safe_run_module(self, mod_name, where):
        """A safe version of runpy.run_module().

        This version will never throw an exception, but instead print
        helpful error messages to the screen.

        Parameters
        ----------
        mod_name : string
            The name of the module to be executed.
        where : dict
            The globals namespace.
        """
        try:
            where.update(
                runpy.run_module(str(mod_name), run_name="__main__",
                                 alter_sys=True)
                )
        except:
            self.showtraceback()
            warn('Unknown failure executing module: <%s>' % mod_name)
def safe_run_module ( self , mod_name , where ) : try : where . update ( runpy . run_module ( str ( mod_name ) , run_name = "__main__" , alter_sys = True ) ) except : self . showtraceback ( ) warn ( 'Unknown failure executing module: <%s>' % mod_name )
A safe version of runpy.run_module().

        This version will never throw an exception, but instead print
        helpful error messages to the screen.

        Parameters
        ----------
        mod_name : string
            The name of the module to be executed.
        where : dict
            The globals namespace.
A safe version of runpy . run_module () .