可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
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.