-
Notifications
You must be signed in to change notification settings - Fork 70
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
Temp notebook copies and kernels never removed #51
Comments
The cleanup is triggered via window.onbeforeunload. Unfortunately, this is not very reliable because browsers are hesitant to execute javascript after the user left the page. Do you see the |
I don't see any delete commands. Here are the lines for opening and closing of an appmode notebook in Chrome Version 81.0.4044.129:
|
It indeed seems like the |
We have also noticed this problem. One little detail: the apps do get closed in Firefox, but not in Chrome. |
Apparently, there was a recent change in chrome, which disallow sync XHR in page dismissal. Could you once try if setting |
Yes, I tried: the problem gets resolved for Chrome, but shows up for Firefox. |
Ok, it seems the proper way these days is sendBeacon(). That API only sends @yakutovicha, do you want to give it a try? I'm not sure I'll find time for it this week. |
Just a shot in the dark but what about using the more generic fetch API in order to be able to keep using a See here for an example of replacing a @oschuett If you could have a guess as to how the |
I think, |
Hi @oschuett. I am personally not very experienced in javascript, so I would really leave the fix to somebody who knows better what they are doing. However, I was wondering, if it would make sense to do a temporary fix of a sort: I can do that rather quickly. And then we could wait for a more future-proof fix. Let me know. |
I took a first stab at it. Let me know if it works for you. |
thanks, @oschuett, it seems to work! I checked on Firefox, Chrome, Safari |
I tried the above changes but it did not work for me. On looking into jupyter logs, I found the following :
Is it due to the fact that it is not able to delete the file as it doesn't have permissions? Chrome version : PS : I am using docker with |
@EngineerReversed, it's hard to say without more information. |
I tried the same on my local mac and it was able to delete temporary copies of notebook.
I guess it has something to do with permissions on server. |
On further series of experiments, I was able to localize the bug. I had not uninstalled the previous version of
After installing it via
You can release a new version with this patch. |
Alright, I've made a new release. Thanks for your help! |
When I launch an apps link, the my notebook is correctly copied and a new kernel started; however, they are never deleted/shutdown, which leaves me with a large number of junk files and running kernels. Is there a config I should modify to ensure this happens?
Win 10 Pro 64bit
python 3.7.5
appmode 0.7.0
jupyter-core 4.6.1
jupyter-client 5.3.4
The text was updated successfully, but these errors were encountered: