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条回答
放荡不羁爱自由
2楼-- · 2019-04-17 22:01

For me, it happens when all the cell's output is too long. Just clear some output to solve this.

查看更多
smile是对你的礼貌
3楼-- · 2019-04-17 22:05

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.

查看更多
Ridiculous、
4楼-- · 2019-04-17 22:08

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.

查看更多
Summer. ? 凉城
5楼-- · 2019-04-17 22:09

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

查看更多
萌系小妹纸
6楼-- · 2019-04-17 22:14

For me the issue turned out to be the file path was too long. Renaming the folder resolved the issue.

查看更多
登录 后发表回答