Jupyter Notebook error during saving

2019-04-08 17:03发布

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?

5条回答
迷人小祖宗
2楼-- · 2019-04-08 17:09

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"

查看更多
放我归山
3楼-- · 2019-04-08 17:12

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]

查看更多
Fickle 薄情
4楼-- · 2019-04-08 17:28

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.

查看更多
萌系小妹纸
5楼-- · 2019-04-08 17:29

+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!

查看更多
兄弟一词,经得起流年.
6楼-- · 2019-04-08 17:31

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.

查看更多
登录 后发表回答