jupyter notebook(三)——IOPub_data_rate_limit报错

在运行jupyter notebook并处理文件时遇到IOPub_data_rate_limit错误,本文提供了解决方案。首先,通过命令生成配置文件;接着,修改`jupyter_notebook_config.py`中相关配置,增大IO读取速率限制;最后,保存并重启jupyter notebook以应用更改。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、问题

运行jupyter notebook,然后运行python代码,读取文件处理时,会报错。发现时IO读取时错误。应该是IO速率问题。

下面是问题报错:

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)

 

二、解决办法

2.1、生产配置文件

运行命令:

jupyter notebook --generate-config

 

说明:

  1. 如果之前运行过这个命令,则不用再次运行。
  2. 这个命令的目的时生产运行需要的配置文件。

2.2、修改配置文件

修改生产的配置文件:jupyter_notebook_config

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值