-
-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Don't clone Span in _init_tools
#6387
Conversation
Thanks for the lightning fast fix! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6387 +/- ##
=======================================
Coverage 88.48% 88.48%
=======================================
Files 323 323
Lines 68460 68469 +9
=======================================
+ Hits 60579 60588 +9
Misses 7881 7881 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not safe. We clone models because a user provided Model
can only be used within a single plot. What likely needs to happen is that instead of cloning and replacing the models on a per-plot basis we have to search the entire model graph and replace shared instances all at once.
Just to be sure, we still clone the This is an regression and was only reasonly introduced in #6220. height = Span(dimension="height")
width = Span(dimension="width")
cht1 = CrosshairTool(overlay=[height, width])
cht2 = CrosshairTool(overlay=height) |
Sorry, misread it, this does look correct. |
_init_tools
_init_tools
Fixes #6386