【发布时间】: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)
我该如何解决这个问题?
【问题讨论】:
-
这个问题和这里讨论的问题stackoverflow.com/questions/43288550/…类似