iPython Notebook/Jupyter autosave failed

2019-04-17 21:17发布

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.

11条回答
Fickle 薄情
2楼-- · 2019-04-17 21:54

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)

查看更多
冷血范
3楼-- · 2019-04-17 21:48

The problem is that the notebook was started with with two different users. The most common scenario is the following:

  1. Starts with elevated user/root sudo ipython notebook
  2. 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

查看更多
对你真心纯属浪费
4楼-- · 2019-04-17 21:53

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)))

查看更多
smile是对你的礼貌
5楼-- · 2019-04-17 21:54

I had the same issue,i tried these methods unfortunately it doesn't work. At last i found a method

  1. Copy your filename.ipynb file manully to same directory

  2. Rename it with filename at about 5 characters. Then open it in jupyter notebook , and it can be saved successfully .

  3. After that you can rename it to any name you want !

查看更多
Deceive 欺骗
6楼-- · 2019-04-17 21:57

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).

查看更多
太酷不给撩
7楼-- · 2019-04-17 22:00

I had the same problem while running iPython3/Jupyter local with multiple notebooks open. I solved the problem by:

  1. 1 Refreshing the dashboard tab (localhost:8888/tree#).
  2. Running 'jupyter notebook list' in the terminal.
  3. Copying the token from the terminal into the password box on refreshed dashboard.
查看更多
登录 后发表回答