Jupyter 笔记本错误消息,指出超出 IOPub 数据速率



当我尝试使用以下代码导入.txt文件时,我收到以下错误消息,

with open("cobuy.txt", "r+") as my_file:
for item in my_file:
my_file.write("%sn" % 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 T笔记本版本5.0似乎存在问题。它表明您可以将以下代码放在终端中以解决此问题:jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000000,我似乎无法让它工作:https://github.com/jupyter/notebook/issues/2287

还有其他解决方案吗?

这个解决方案对我有用。

按如下所示启动笔记本:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

最新更新