【问题标题】:Jupyter Notebook error message that IOPub data rate exceeded超出 IOPub 数据速率的 Jupyter Notebook 错误消息
【发布时间】:2017-07-21 20:31:15
【问题描述】:

当我尝试使用以下代码导入 .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

还有其他解决办法吗?

【问题讨论】:

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


【解决方案1】:

This solution 为我工作。

如下启动notebook:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

【讨论】:

  • 如果我通过 Anaconda 屏幕而不是终端访问我的 jupyter 笔记本,我该怎么做?谢谢!
猜你喜欢
  • 1970-01-01
  • 2017-10-21
  • 2018-06-23
  • 2023-04-10
  • 1970-01-01
  • 2017-09-03
  • 2018-08-01
  • 1970-01-01
相关资源
最近更新 更多