如何在Jupyter笔记本中解决"IOPub data rate exceeded."



我试图从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)

我该如何解决这个问题?

使用以下命令打开Jupyter笔记本。

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

然后尝试运行查询。

最新更新