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

The new self-contained widget is slow in google colab #6651

Closed
jleibs opened this issue Jun 25, 2024 · 1 comment · Fixed by #6680
Closed

The new self-contained widget is slow in google colab #6651

jleibs opened this issue Jun 25, 2024 · 1 comment · Fixed by #6680
Labels
notebook Jupyter notebooks etc 🦟 regression A thing that used to work in an earlier release

Comments

@jleibs
Copy link
Member

jleibs commented Jun 25, 2024

Our new rerun_notebook widget is significantly slower to load in colab than the old iframe approach.

Sample notebook demonstrating the issue:
https://colab.research.google.com/drive/1VjQsSHvhfsnQx8TEClTc7L0vDH6Fub-l#scrollTo=oI__Aa8JTpK9

In general it takes 6-8 seconds to load, even on a 2gig fiber internet connection.

For some reason we spend significant time waiting for the server to send to the bundled js asset:
image

Also, it seems like the way in which the tunneling happens possibly prevents things from being cached properly.

@jleibs jleibs added 🦟 regression A thing that used to work in an earlier release notebook Jupyter notebooks etc labels Jun 25, 2024
@jleibs
Copy link
Member Author

jleibs commented Jun 25, 2024

I'm curious if this will require an approach where we try to load an http-hosted file, and if that fails then we fall back on something fetched from the anywidget module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notebook Jupyter notebooks etc 🦟 regression A thing that used to work in an earlier release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant