def add_annotation(self, annotation, **kwargs):
        if not isinstance(annotation, Annotation):
            raise ValueError("'annotation' argument to add_annotation must be Annotation subclass")

        if annotation.plot is not None:
            raise ValueError("annotation %s to be added already has 'plot' attribute set" % annotation)

        annotation.plot = self

        self.renderers.append(annotation)
        return annotation
Adds new Annotation into the Plot.renderers
dataset/ETHPy150Open bokeh/bokeh/bokeh/models/plots.py/Plot.add_annotation