Jupyter Notebook无法保存:帖子中缺少"_xsrf"参数 [英] Jupyter Notebook not saving: '_xsrf' argument missing from post

查看:413
本文介绍了Jupyter Notebook无法保存:帖子中缺少"_xsrf"参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在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?

我正在使用Google Chrome,但我的代码中没有LastPass扩展名或任何'%'字符,

I'm using google chrome, but I don't have the LastPass extension or any '%' characters in my code, as another post suggested.

感谢您的帮助!

推荐答案

很抱歉,就您的截止日期而言,这可能很晚...我发现的最简单的方法是:

Sorry this probably comes late as far as your deadline is concerned... The easiest way I found is this:

https://github.com/nteract/hydrogen/issues/922# issuecomment-405456346

只需打开同一内核上的另一个笔记本,问题就神奇地消失了;您可以再次保存以前显示_xsrf错误的笔记本.

Just open another 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆