Source code for bokeh.models.annotations.html.html_annotation
#-----------------------------------------------------------------------------# Copyright (c) Anaconda, Inc., and Bokeh Contributors.# All rights reserved.## The full license is in the file LICENSE.txt, distributed with this software.#-----------------------------------------------------------------------------''''''#-----------------------------------------------------------------------------# Boilerplate#-----------------------------------------------------------------------------from__future__importannotationsimportlogging# isort:skiplog=logging.getLogger(__name__)#-----------------------------------------------------------------------------# Imports#-----------------------------------------------------------------------------# Bokeh importsfrom....core.has_propsimportabstractfrom..annotationimportAnnotation#-----------------------------------------------------------------------------# Globals and constants#-----------------------------------------------------------------------------__all__=("HTMLAnnotation",)#-----------------------------------------------------------------------------# General API#-----------------------------------------------------------------------------
[docs]@abstractclassHTMLAnnotation(Annotation):''' Base class for HTML-based annotations. .. note:: All annotations that inherit from this base class can be attached to a canvas, but are not rendered to it, thus they won't appear in saved plots. Only ``export_png()`` function can preserve HTML annotations. '''# explicit __init__ to support Init signaturesdef__init__(self,*args,**kwargs)->None:super().__init__(*args,**kwargs)
#-----------------------------------------------------------------------------# Dev API#-----------------------------------------------------------------------------#-----------------------------------------------------------------------------# Private API#-----------------------------------------------------------------------------#-----------------------------------------------------------------------------# Code#-----------------------------------------------------------------------------