如何解决“超出IOPub数据速率".在Jupyter Notebook中 [英] How to solve "IOPub data rate exceeded." in Jupyter Notebook

查看:403
本文介绍了如何解决“超出IOPub数据速率".在Jupyter Notebook中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从Jupyter笔记本中唯一值 58 的唯一值集中找到2、3、4的子集.下面是我使用的功能.

I tried to find subsets of 2,3,4 from a unique value set of 58 unique entries in the Jupyter notebook. Below is the function which I used.

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和4的子集执行时,它给出以下消息.

It worked fine for subsets of 2 and 3. But when it is executed for the subsets of 4, it gave the following message.

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

Open the Jupyter Notebook using the following command.

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

然后尝试运行查询.

这篇关于如何解决“超出IOPub数据速率".在Jupyter Notebook中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆