欢迎访问mehome的博客

omorrow is another day.T
Fork me on GitHub

jupyter notebook(三)——IOPub_data_rate_limit报错

一、问题

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

下面是问题报错:

1
2
3
4
5
6
7
8
9
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、生产配置文件

运行命令:

1
jupyter notebook --generate-config

 

说明:

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

2.2、修改配置文件

修改生产的配置文件:jupyter_notebook_config.py

把默认的配置项:#c.NotebookApp.iopub_data_rate_limit = 1000000

修改成:c.NotebookApp.iopub_data_rate_limit = 1000000000

 

2.3、重启jupter notebook

  1. 注意前面修改的配置文件需要保存。
  2. 报错中有两个配置项,另一个配置项不需要修改。

 

三、参考

参考:

posted @   mehome  阅读(19411)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示