Jupyter Notebook错误消息,表明超出了IOPub数据速率

时间:2017-07-21 20:31:16

标签: python python-3.x jupyter-notebook ipython-notebook jupyter

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

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`.

foreach($m in $messages) {
    $m.Subject
    foreach($r in $m.Attachments) {
        $r.Download()
        $r.Save('C:\Users\xxxx\Desktop\x\')
    }
}

从谷歌搜索,似乎Jupyter Notebook 5.0版存在问题。它表明你可以在终端中放入以下代码来解决这个问题:jupyter notebook --NotebookApp.iopub_data_rate_limit = 10000000000,我似乎无法让它工作:https://github.com/jupyter/notebook/issues/2287

还有其他解决方法吗?

1 个答案:

答案 0 :(得分:4)

This solution正在为我工​​作。

启动笔记本如下:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10