欢迎访问mehome的博客

Tomorrow is another day.
Fork me on GitHub

jupyter notebook(三)——IOPub_data_rate_limit报错

一、问题

运行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.py

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

修改成:c.NotebookApp.iopub_data_rate_limit = 1000000000

 

2.3、重启jupter notebook

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

 

三、参考

参考:

posted @ 2019-03-20 21:01  mehome  阅读(18422)  评论(0编辑  收藏  举报