You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when a new ViewModel is defined (in bokeh/model.py) it's added to a model_class_reverse_map. When Bokeh collects the necessary resources with the JSResources and CSSResources objects (in bokeh/resources.py), it crawls the model_class_reverse_map dict and checks each model for a __javascript__ and __css__ attribute.
The issue is that there are use cases where a user will create custom models that aren't included in the document. Those models' resources will be included in the output element regardless. Apart from slower page loads, it's possible to have conflicting resources.
The solution is likely to make sure that the model is actually in the document.
The text was updated successfully, but these errors were encountered:
Currently when a new ViewModel is defined (in bokeh/model.py) it's added to a
model_class_reverse_map
. When Bokeh collects the necessary resources with the JSResources and CSSResources objects (in bokeh/resources.py), it crawls themodel_class_reverse_map
dict and checks each model for a__javascript__
and__css__
attribute.The issue is that there are use cases where a user will create custom models that aren't included in the document. Those models' resources will be included in the output element regardless. Apart from slower page loads, it's possible to have conflicting resources.
The solution is likely to make sure that the model is actually in the document.
The text was updated successfully, but these errors were encountered: