Jupyter Notebook错误信息:IOPub数据速率超过限制

3
当我尝试使用以下代码导入一个.txt文件时,会出现以下错误信息:
with open("cobuy.txt", "r+") as my_file:
    for item in my_file:
        my_file.write("%s\n" % item)

text = open("obuy.txt").read()

text

:

IOPub data rate exceeded.
The notebook server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--NotebookApp.iopub_data_rate_limit`.

通过谷歌搜索,发现Jupyter Notebook版本5.0存在问题。有人建议可以在终端中输入以下代码以解决此问题:jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000000,但我似乎无法使其生效:https://github.com/jupyter/notebook/issues/2287

除此之外,还有其他解决方案吗?


有任何帮助吗? - bernando_vialli
1个回答

4

这个解决方案 对我很有效。

按照以下方式启动笔记本:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

3
如果我是您的翻译,您需要通过Anaconda屏幕访问Jupyter笔记本电脑,而不是通过终端进行访问,您应该如何操作?谢谢! - bernando_vialli

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接