def _load_view_non_cached(self, name, view_element):
        """ Loads the view by execing a file. Useful when tweaking
            views.
        """
        result = {}
        view_filename = self._view_filename
        try:
            exec(compile(
                open(view_filename).read(), view_filename, 'exec'), {}, result
            )
            view = result['view']
        except __HOLE__:
            logger.debug("No view found for [%s] in [%s]. "
                            "Using the base class trait_view instead.",
                            self, view_filename)
            view = super(Base, self).trait_view(name, view_element)
        return view
dataset/ETHPy150Open enthought/mayavi/mayavi/core/base.py/Base._load_view_non_cached