2017-07-21 184 views
3

我收到以下錯誤消息時我嘗試導入文本文件與下面的代碼Jupyter筆記本錯誤信息,這IOPub數據速率超過

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

從周圍的Googling ,Jupyter Notebook 5.0版似乎有問題。它顯示,你可以把下面的代碼放在終端來解決:jupyter notebook --NotebookApp.iopub_data_rate_limit = 10000000000,我似乎無法得到這個工作:https://github.com/jupyter/notebook/issues/2287

有沒有其他解決方案呢?

+0

任何幫助嗎? – mkheifetz

+0

[在Jupyter筆記本中查看圖像時超出IOPub數據速率]的可能重複(https://stackoverflow.com/questions/43288550/iopub-data-rate-exceeded-when-viewing-image-in-jupyter-notebook) – oztalha

回答

2

This solution正在爲我工​​作。

啓動如下筆記本:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10