-
Notifications
You must be signed in to change notification settings - Fork 74
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
Make Imviz panning more seamless #864
Conversation
So, is this still going to happen? |
Going to restart the jobs so they pick up new glue-jupyter release. |
As noted in the description above - not in this PR. I don't think this is specifically MVP critical if what is in this PR is good enough. |
glue-jupyter v0.9 is out for the record, so this should work properly now. |
This comment has been minimized.
This comment has been minimized.
I am just not sure if I should open a follow-up issue for it for just forget about it. |
Codecov Report
@@ Coverage Diff @@
## main #864 +/- ##
=======================================
Coverage 68.29% 68.30%
=======================================
Files 65 65
Lines 4741 4742 +1
=======================================
+ Hits 3238 3239 +1
Misses 1503 1503
Continue to review full report at Codecov.
|
I won't forget about it but feel free to open an issue at glue-jupyter 😀 |
Care to rebase to resolve conflict? 😅 |
I rebased locally and am using |
I guess I like to pan too much around 47-Tuc. Maybe someone with a more realistic science use case will be happy enough with this... 🤷 |
ce98a06
to
6349029
Compare
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.
I guess it doesn't hurt... 😸
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.
Side by side, I do notice that there's more area over which you can pan before the lag appears. People who pan aggressively won't notice much, but I think this is a good contribution for those who don't.
Thanks, all! |
Description
This pull request uses the option added in glue-viz/glue-jupyter#246 to expand the image fixed resolution buffer beyond the edge of the axes, making panning more seamless:
This is IMHO an improvement over the default behavior right now but it is not perfect - if one pans too fast one might still reach the 'edge' of the buffer and have to wait for it to refresh. We can make the padding larger but then it will take longer to compute, so we need to find the right balance.
There is another - separate - improvement I would like to make which is to only compute the buffer when the mouse button is released during panning, instead of every 0.5 seconds during panning, but this will be done in a separate PR and may not happen before the MVP deadline, so I wanted to at least get this quick fix in.
The glue-jupyter v0.9 release is in progress so this currently requires glue-jupyter dev, but in <1h it should work fine (and the CI can be restarted once glue-jupyter v0.9 is visible on PyPI)
Fixes #564
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
trivial
label.CHANGES.rst
?