Skip to content
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

In defer mode render enough cells to fill the viewport #14865

Merged

Conversation

fcollonval
Copy link
Member

even if it takes more than a macro cycle

References

Fixes #14608

Code changes

In notebook defer rendering mode, cells are rendered to at least fill the viewport before starting rendering on idle time.

User-facing changes

Cells should not pop-up when opening a notebook
Notebook opening time may increase

Backwards-incompatible changes

None

even if it takes more than a macro cycle
@fcollonval fcollonval linked an issue Jul 20, 2023 that may be closed by this pull request
@jupyterlab-probot
Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

Copy link
Member Author

@fcollonval fcollonval left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bot please run benchmark

@fcollonval
Copy link
Member Author

Benchmark tests are ok in term of cell rendered - what happen (too) often is that the cell toolbar is not always displayed:

image

So I consider this as good to go.

Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fcollonval fcollonval merged commit be62668 into main Aug 2, 2023
76 of 83 checks passed
@fcollonval fcollonval deleted the 14608-benchmark-ui-test-fails-since-switching-to-defer-mode branch August 2, 2023 16:21
@fcollonval
Copy link
Member Author

@meeseeksdev please backport to 4.0.x

meeseeksmachine pushed a commit to meeseeksmachine/jupyterlab that referenced this pull request Aug 2, 2023
fcollonval added a commit that referenced this pull request Aug 3, 2023
…wport (#14905)

Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
@krassowski krassowski mentioned this pull request Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Benchmark UI test fails since switching to defer mode
2 participants