I am working in iPython 3/Jupyter running multiple kernels and servers. As such, i often forget to personally save things as I jump around a lot. The autosave has failed for the past 3 hours. The error says: "Last Checkpoint: 3 hours ago Autosave Failed! I try to manually File>>Save and Checkpoint, and nothing changes. Help! Next to my Python 2 kernel name, there is a yellow box that say forbidden instead of edit. It goes away when i click on it. I don't know if that has anything to do with the failure to save, but it doesn't change once clicked.
问题:
回答1:
I had same problem and I found out I was logged out from Jupyter. I found that when I went to Jupyter home page and it asked me to enter password. After I entered password I could save my notebook (it was still running in other tab).
回答2:
The problem is that the notebook was started with with two different users. The most common scenario is the following:
- Starts with elevated user/root
sudo ipython notebook
- Do some work and then start with
ipython notebook
From #1 a hidden directory was created called .ipynb_checkpoints with root privileges. As a result you will not be able to save updates unless the notebook is running as root.
To fix this simply delete the .ipynb_checkpoints directory
回答3:
I had the same problem while running iPython3/Jupyter local with multiple notebooks open. I solved the problem by:
- 1 Refreshing the dashboard tab (localhost:8888/tree#).
- Running 'jupyter notebook list' in the terminal.
- Copying the token from the terminal into the password box on refreshed dashboard.
回答4:
For me, it happens when all the cell's output is too long. Just clear some output to solve this.
回答5:
I had a similar problem which was caused by the multiple users issue others have mentioned. I was using a combination of Docker with a volume, Linux subsystem running jupyter and plain old windows on the same directory. Unfortunately I had an issue with the size of the data I was loading so had to ditch docker which is where I started to run into problems.
To fix this, using gitbash, I ran:
rm -rf <location of your dir where you launch notebook>/.ipynb_checkpoints/
rm -rf ~/.jupyter/
then I made sure this was recreated by running:
jupyter notebook password
which recreates the .jupyter folder. Then relaunching the notebook fixed this problem for me.
回答6:
I know this question is very old but I have encountered the same issue recently and got a simpler workaround. Note that in my case, I don't know what caused the issue, but certainly not a multiple users since the notebook is run internally on an offline computer (no outside access whatsoever).
In order to resume the autosaves, I just had to re-open the notebook in another tab and manually copy paste all the unsaved cells. Burdensome but it fixed the problem. (Also note that I was able to keep working on the notebook, as long as I didn't want to save or restart the kernel)
回答7:
I had a separate problem.
Looking in my jupyter notebook console window, I saw the message: [I 09:36:14.717 NotebookApp] Malformed HTTP message from ::1: Content-Length too long
It made me think maybe there was some huge amount of text in one of my cells' outputs or something, so I started clearing the outputs.
When I cleared one cell with a plotly chart, it worked again. Maybe there was some problem with Plotly.
回答8:
Open a new tab by clicking on the Jupyter logo on the top left of your open notebook. When asked for a token, from a terminal run:
jupyter notebook list
The output will look something like this:
http://localhost:8888/?token=THE_TOKEN_YOU_NEED :: /Users/.../.../.../
Copy THE_TOKEN_YOU_NEED in the jupyter main tab, and your notebook will become active again (i.e., you can save it, open a new one, etc.)
回答9:
I had the same issue,i tried these methods unfortunately it doesn't work. At last i found a method
Copy your filename.ipynb file manully to same directory
Rename it with filename at about 5 characters. Then open it in jupyter notebook , and it can be saved successfully .
After that you can rename it to any name you want !
回答10:
i faced this same issue severely :( ,, and finally i found it alone ))) /// and its all abt RANSOMEWARE PROTECTION on my windows 10 pro.. it wont let u over write any files and folder by third party apps under this protection.
- Open the Windows Security app by clicking the shield icon in the task bar or searching the start menu for Defender.
- Click the Virus & threat protection tile (or the shield icon on the left menu bar) and then click Ransomware protection.
- Set the switch for Controlled folder access to "OFF"
and happy jupyter)))
回答11:
For me the issue turned out to be the file path was too long. Renaming the folder resolved the issue.