Other ( Model) – A Bokeh model to link to self.attr ParametersĪttr ( str) – The name of a Bokeh property on this model To update one Bokeh model property whenever another changes value. This is a convenience method that simplifies adding a CustomJS callback js_link ( attr : str, other :, other_attr : str, attr_selector : Optional ] = None ) → None ¶ Takes a string and returns a corresponding Tool instance. True, if properties are structurally equal, otherwise False classmethod from_string ( name : str ) → ¶ Other ( HasProps) – the other instance to compare to Returns ReturnsĬlean up references to the document and property equals ( other : _props.HasProps ) → bool ¶ Properties defined on any parent classes. This method always traverses the class hierarchy and includes Property_values ( dict) – theme values to use in place of defaults Returns Other instances to save memory (so neither the caller nor the The passed-in dictionary may be kept around as-is and shared with apply_theme ( property_values : Dict ) → None ¶Īpply a set of theme values which will be used rather thanĭefaults, but will not override application-set values. That are provided, nor are the tags used directly by Bokeh for any No uniqueness guarantees or other conditions are enforced on any tags This name can be useful when querying the document to retrieve specific name = None ¶ TypeĪn arbitrary, user-supplied name for this model. This description will be typically presented in the If not defined, an auto-generatedĭescription will be used. Run callbacks when the specified event occurs on this ModelĪ string describing the purpose of this tool. Inherited from : py: class: EventCallbackManager Inherited from : py: class: Propert圜allbackManager Inherited from : py: class: HasDocumentRef Remove any themed values and restore defaults. Query the properties values of HasProps instances with a predicate.Īpply a set of theme values which will be used rather than defaults, but will not override application-set values. Updates the object's properties from a JSON attributes dictionary.įind the PropertyDescriptor for a Bokeh property on a class, given the property name.Ĭollect the names of properties on this class.Ĭollect the names of all properties on this class that also have references.Ĭollect the names of all DataSpec properties on this class.Ĭollect a dict mapping property names to their values. Updates the object's properties from the given keyword arguments. Set a property value on this object from JSON. Intercept attribute setting on HasProps in order to special case a few situations: Returns a JSON string encoding the attributes of this object. Returns a dictionary of the attributes of this object, containing only "JSON types" (string, number, boolean, none, dict, list). Update objects that match a given selector with the specified attribute/value updates. Query this object and all of its references for objects that match the given selector. Returns all Models that this object has references to. Link two Bokeh model properties using JavaScript.Īttach a CustomJS callback to an arbitrary BokehJS model event.Īdd a callback on this object to trigger when attr changes. This method is called when a class is subclassed.Ĭlean up references to the document and property Public Methods: Inherited from : py: class: Tool
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |