Jupyter Notebook 未保存:帖子中缺少“_xsrf"参数 [英] Jupyter Notebook not saving: '_xsrf' argument missing from post
问题描述
我已经在 jupyter 笔记本上运行脚本大约 26 小时了;我并没有真正将我的计算机用于其他任何用途,但是它需要运行这个程序,该程序需要大约 30 个小时才能完成.在大约 21 小时后,它停止保存,我的终端有这个:
I've been running a script on jupyter notebooks for about 26 hour; I haven't really been using my computer for anything else, but it needs to run this program that will take ~30 hours to complete. At about 21 hours in, it stopped saving and my terminal had this:
403 PUT /api/contents/[file.ipynb] (::1): '_xsrf' argument missing from POST
其中 [file.ipynb] 是我的 jupyter 笔记本的位置.它还说:
where [file.ipynb] is the location of my jupyter notebook. It also says:
'_xsrf' argument missing from post
再次在笔记本的右上角.程序仍在运行,我不想重新启动 jupyter notebook 而不得不再次运行程序,因为我有一个截止日期,还有什么我可以做的吗?
in the top right part of the notebook again. The program is still running and I don't want to restart jupyter notebook and have to run the program again, as I have a deadline, is there anything else I can do?
我正在使用谷歌浏览器,但我的代码中没有 LastPass 扩展名或任何%"字符,正如另一篇文章所建议的那样.
I'm using google chrome, but I don't have the LastPass extension or any '%' characters in my code, as another post suggested.
感谢您的帮助!
推荐答案
我找到的最简单的方法是:
The easiest way I found is this:
https://github.com/nteract/hydrogen/issues/922#issuecomment-405456346
只需在同一内核上打开另一个(非运行的、现有的)笔记本,问题就神奇地消失了;您可以再次保存之前显示 _xsrf
错误的笔记本.
Just open another (non-running, existing) notebook on the same kernel, and the issue is magically gone; you can again save the notebooks that were previously showing the _xsrf
error.
如果您已经关闭了 Jupyter 主页,您可以在启动 Jupyter 的终端上找到它的链接.
If you have already closed the Jupyter home page, you can find a link to it on the terminal from which Jupyter was started.
这篇关于Jupyter Notebook 未保存:帖子中缺少“_xsrf"参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!