'Convenience function to create and add a histgram callback.'

def add_hist_callback(self, plot_per_mini=False, filter_key=['W']):

    self.callbacks.append(HistCallback(plot_per_mini=plot_per_mini, filter_key=filter_key))
