-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Jupyter Notebook caching issues when developing extensions #7182
Comments
Thanks @tillahoffmann for the report. Curious if this is also the case with JupyterLab? |
Interestingly, JupyterLab seems to work just fine. |
This looks a little bit similar to #6952, but not sure it's exactly the same issue. Does this error show up in JupyterLab as well?
|
The javascript console doesn't show any errors when using JupyterLab. |
@tillahoffmann Do you have any content blocking extensions, like ad blockers, running in Safari? Extensions may not run in private mode. If you disable extensions in regular mode in Safari, do you still see this problem? |
I have Tampermonkey, Adblock Plus, and Userscripts installed. The issue persists when they are turned off. I've dug in a bit further, and it seems to be related to caching of resources. When I open developer tools in standard mode rather than private, select the "Network" tab in the developer tools, select "Disable Caches", and refresh, things work again. This seems to fix things for a while. I haven't quite figured out what makes it break again. Maybe I have different versions of Jupyter in different virtualenvs that could break things? Say I have version x that is cached by Safari but I try to run a notebook with version y. I haven't been able to reproduce that yet, however. Say that was the issue, which of the jupyter packages could be a possible culprit (I'll keep an eye on the versions of those packages)? |
Thank you for investigating this issue @tillahoffmann. It seems like when developing Jupyter you might need to disable the cache to avoid this problem. A comment by @krassowski in the Triage meeting something to further investigate would be if we are doing all we can to avoid this issue in Notebook, via cache busting query parameter for Notebook resources. |
I have the same issue after upgrading Jupyter, so this also affects users |
Having the same problem! Safari Version 17.1.2 (19616.2.9.11.12), MacOS 14.1.2 (23B92) |
Same issue. Workaround : clear cache. Env:
|
Thank you very much! The solution of paschembri is confirmed. The following worked after having cleared the cache only for Safari > Settings > Privacy > Manage Website Data > [search: localhost] > [choose "localhost"] > [click "Remove All"] Original symptoms:
Safari Version 17.3.1 (19617.2.4.11.12) |
Thank you @paschembri ! Clearing cache worked. |
works on safari.thx |
Jupyter notebooks sometimes fail to load when I'm using Safari on macOS. Everything works as expected after loading the page in private mode. Here are my investigations so far.
The javascript console shows the following error.
I have two cookies when I inspect the "Storage" tab:
After deleting the two cookies and reloading, I get the usual authentication screen. After entering the token, I'm back to the error above. I also have the following value in local storage.
When I reload the page in private mode, everything works as expected. The content of cookies and local storage as follows.
No errors are shown in the console other than a 404 for various icons. I couldn't see an obvious difference between opening in private vs usual mode. Here's the dump when opening in the usual context.
Here's the dump for opening in private mode.
Any ideas what might be going on?
Runtime
macOS 14.1.2 with Safari 17.1.2 (19616.2.9.11.12).
The text was updated successfully, but these errors were encountered: