【问题标题】:How to solve "IOPub data rate exceeded." in Jupyter Notebook如何解决“IOPub 数据速率超出”。在 Jupyter 笔记本中
【发布时间】:2023-04-10 01:09:01
【问题描述】:

我试图从 Jupyter 笔记本中的 58 个唯一条目的唯一值集中找到 2、3、4 的子集。下面是我使用的函数。

import itertools 
def findsubsets(s, n): 
    return [set(i) for i in itertools.combinations(s, n)] 
print(findsubsets(x,2))
print(findsubsets(x,3))
print(findsubsets(x,4))

它对 2 和 3 的子集运行良好。但是当它对 4 的子集执行时,它给出了以下消息。

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

Current values:
NotebookApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
NotebookApp.rate_limit_window=3.0 (secs)

我该如何解决这个问题?

【问题讨论】:

标签: python jupyter-notebook


【解决方案1】:

使用以下命令打开 Jupyter Notebook。

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

然后尝试运行您的查询。

【讨论】:

    猜你喜欢
    • 2017-10-21
    • 1970-01-01
    • 2017-09-03
    • 2018-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-06-11
    • 2018-11-14
    相关资源
    最近更新 更多