def _execute_hooks(self, element):
        """
        Executes finalize hooks
        """
        if self.hooks and self.finalize_hooks:
            self.param.warning(
                "Supply either hooks or finalize_hooks not both, "
                "using hooks and ignoring finalize_hooks.")
        hooks = self.hooks or self.finalize_hooks
        for hook in hooks:
            try:
                hook(self, element)
            except Exception as e:
                self.param.warning("Plotting hook %r could not be "
                                   "applied:\n\n %s" % (hook, e))
def _execute_hooks ( self , element ) : if self . hooks and self . finalize_hooks : self . param . warning ( "Supply either hooks or finalize_hooks not both, " "using hooks and ignoring finalize_hooks." ) hooks = self . hooks or self . finalize_hooks for hook in hooks : try : hook ( self , element ) except Exception as e : self . param . warning ( "Plotting hook %r could not be " "applied:\n\n %s" % ( hook , e ) )
Executes finalize hooks