jupyter notebook(三)——IOPub_data_rate_limit报错
2024-09-07 14:55:45
一、问题
运行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
说明:
- 如果之前运行过这个命令,则不用再次运行。
- 这个命令的目的时生产运行需要的配置文件。
2.2、修改配置文件
修改生产的配置文件:jupyter_notebook_config.py
把默认的配置项:#c.NotebookApp.iopub_data_rate_limit = 1000000
修改成:c.NotebookApp.iopub_data_rate_limit = 1000000000
2.3、重启jupter notebook
- 注意前面修改的配置文件需要保存。
- 报错中有两个配置项,另一个配置项不需要修改。
三、参考
参考:
最新文章
- 从游戏脚本语言说起,剖析Mono所搭建的脚本基础
- mac osx Forbidden You don't have permission to access / on this server解决方法
- python中global 和 nonlocal 的作用域
- alpha-beta剪枝搜索
- transformClassesWithDexForDebug
- OneSQL助力永辉超市大卖特卖
- 字符编码和python .encode().decode()方法
- iOS xib中TableView创建的2种模式
- windows+nginx+fcgi配置
- 一些常用到的Centos命令
- hdu 4010 Query on The Trees LCT
- Python 实例: 备份文件
- perl 变量详解
- ajax-典型应用-验证用户名
- Android简单计算器
- CSS jQuery HTML5 CSS3
- 微信小程序之给项目设置id后提示不在合法域名列别中
- Guitar Pro里自动化编辑器有什么用?如何使用?
- POJ 2001 Shortest Prefixes(字典树)
- Centos新增group和user