Jupyter Notebook error during saving

这一生的挚爱 提交于 2019-12-21 17:09:12

问题


Everything used to work fine but now every time I try saving any file in Jupyter Notebook, I get the following error.

URIError: URIMalformed

Also the following is shown in the title bar.

Last Checkpoint: 09/02/2016 Autosave Failed!

How do I fix this issue?


回答1:


There is a solution for the Lastpass users:

https://github.com/jupyter/notebook/issues/1966

adding "localhost" to My Vault -> Account Settings -> Neverl URLS -> "Never Add Site"




回答2:


I encountered this same error as well. I ended up tracing it down to the LastPass extension in Chrome. I disabled the extension, and I was able to save again.

[lastpass] [jupyter]




回答3:


I'm having the same issue and tracked it back to the character %.

I'm using it in the line %matplotlib auto.

I don't even have to run the line of code. Just having it in my text prompts the error. If I remove the character, then I can save again.

Remove any % and see if you can then save.




回答4:


+1 to Scott's answer above. I also got the exact same error messages you got using Python 3.5.1. I fixed the issue by getting rid of any % characters in my code per Scott's answer from yesterday. I needed the % for the modulo operator. I just imported operator.mod() instead.

Aside: This is such a quirky bug!




回答5:


As an alternative to globally disabling the LastPass extension in Chrome, I was able to get things working by running the notebook in a Chrome incognito window.

Additionally, this issue only seems to affect Chrome. Even with LastPass enabled in Firefox, I've been able to save the notebooks without the urierror.

Not using '%' in Jupyter Notebooks doesn't seem like a solution, since the magics all start with % and even having % in a print statement causes the error.



来源:https://stackoverflow.com/questions/41065958/jupyter-notebook-error-during-saving

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!