![]() To future-proof thisĬurrent usage of this method, wrap the return value in list. Mapping property names to property objects. In a future version of Bokeh, this method will return a dictionary Other_attr ( str) – The property on other to link togetherĪttr_selector ( Union ) – The index to link an item in a subscriptable attr 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 True, if properties are structurally equal, otherwise False js_link ( attr : str, other : Model, other_attr : str, attr_selector : int | str | None = None ) → None ¶ 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. The y-axis coordinates for the center of the markers. Units to use for the associated property: deg, rad, grad or turn fill_alpha = 1.0 ¶ Type Run callbacks when the specified event occurs on this Model 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. Generate Python Parameter values suitable for functions that are derived from the glyph.Ĭlean up references to the document and property The Document this model is attached to (can be None) Indicates whether this model should be synchronized back to a Bokeh server when updated in a web browser. List of events that are subscribed to by Python callbacks.Ī mapping of attribute names to lists of CustomJS callbacks, to be set up on BokehJS side when the document is created. a dict of the form.Īn arbitrary, user-supplied name for this model.Īn optional list of arbitrary, user-supplied values to attach to this model.Ī mapping of event names to lists of CustomJS callbacks. The hatch pattern values for the markers.Ī Bokeh protocol "structure" of this model, i.e. The line dash offset values for the markers. Units to use for the associated property: deg, rad, grad or turn The size (diameter) values for the markers in screen space units. The factor by which to dilate the hit radius which is responsible for defining the range in which a marker responds to interactions with the Hover and Tap tools. ![]() ![]() The x-axis coordinates for the center of the markers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |