GeezerVison is showing github.com — add `References` object to `PlotArea`, other cleanup, better garbage collection by kushalkolar · Pull Request #467 · fastplotlib/fastplotlib
Conversation
kushalkolar
commented
Mar 31, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
closes #463
Adds new References object for which there is a single global instance for one instance of Python.
This helps segregate Graphic, Selector, Legend and any other objects we might want to have in the future.
start using prefix _fpl_* for any attributes/methods that are for fpl internal use only, to distinguish them from actual private attributes
Moved selector _fpl_cleanup to Graphic._fpl_cleanup
Need to add tests for:
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
kushalkolar
commented
Mar 31, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Using the linear region selectors notebook to try adn understand what holds onto references since selectors have lots of events.

|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
A base Graphic._fpl_cleanup() that removes all possible event handlers on the renderer and world objects seems to work, tested with LinearRegionSelector

|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
kushalkolar
changed the title
add References object to PlotArea, other cleanup
add References object to PlotArea, other cleanup, better garbage collection
Mar 31, 2024
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.
LGTM, REFERENCES class very elegant
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
clewis7
clewis7 left review comments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|