首页 > 编程语言 >【Python】Jupyter Notebook:IOPub message rate exceeded. The notebook server will temporarily stop send

【Python】Jupyter Notebook:IOPub message rate exceeded. The notebook server will temporarily stop send

时间:2023-03-21 16:22:06浏览次数:46  
标签:sending temporarily Jupyter rate notebook limit iopub NotebookApp jupyter

✨报错提示

IOPub message 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_msg_rate_limit`.

Current values:
NotebookApp.iopub_msg_rate_limit=1000.0 (msgs/sec)
NotebookApp.rate_limit_window=3.0 (secs)

超出 IOPub 消息速率,笔记本服务器将暂时停止发送输出给客户端,以避免崩溃。要更改此限制,请设置配置变量--NotebookApp.iopub_msg_rate_limit

报错信息很完整并且实际上已经给出了解决方案


✨解决方案

在Jupyter新建单元格运行如下命令

!jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

如果需要了解有关于Jupyter配置文件信息

请继续阅读下文


使用如下命令行查看重置默认Jupyter配置

jupyter notebook --generate-config

根据命令回显可知Jupyter配置文件位于如下路径

# Unix
~/.jupyter/jupyter_notebook_config.py
# Windows
C:\Users\${username}\.jupyter\jupyter_notebook_config.py

Windows中~即当前用户目录

一般情况下等价于C:\Users\${username}\


进入该目录

使用文本编辑器打开jupyter_notebook_config.py

搜索NotebookApp.iopub_data_rate_limit

## (bytes/sec)
#          Maximum rate at which stream output can be sent on iopub before they are
#          limited.
#  Default: 1000000
# c.NotebookApp.iopub_data_rate_limit = 1000000

取消# c.NotebookApp.iopub_data_rate_limit = 1000000注释

修改为

NotebookApp.iopub_data_rate_limit=1.0e10

✨参考及引用

https://stackoverflow.com/questions/43288550/iopub-data-rate-exceeded-in-jupyter-notebook-when-viewing-image


⭐转载请注明出处

本文作者:双份浓缩馥芮白

原文链接:https://www.cnblogs.com/Flat-White/p/17240410.html

版权所有,如需转载请注明出处。

标签:sending,temporarily,Jupyter,rate,notebook,limit,iopub,NotebookApp,jupyter
From: https://www.cnblogs.com/Flat-White/p/17240410.html

相关文章

  • 下载完anaconda没有jupyter
    在conda环境中,可使用如下命令安装:condainstalljupyternotebook下载完之后在开始里的近期文件中会出现在D盘里配置文件位置D:mkdirjucdjujupyternotebook命令行里打......
  • Jupyter 运行没效果
    情况:刚安装Jupyter,运行的时候都没有结果解决方案:因为,我缺少: ​​prompt-toolkit​​在存放jupyte处理的文件下,运行​​AnacodaPrompt​​黑窗口: pipinstall-......
  • 跟艾文学编程 《零基础入门学Python》Jupyter Notebook安装和使用
    作者:艾文,计算机硕士学位,企业内训讲师和金牌面试官,公司资深算法专家,现就职BAT一线大厂。 内容:跟艾文学编程《零基础入门学Python》本节内容● Jupyter扩展安装● Jup......
  • Jupyter小技巧:不输出Output
    有的时候,在调试代码的时候,需要输出很多的Output。但是调试完毕后,并不想继续输出这些调试信息。比如如下代码内容,将会输出100行的内容:foriinrange(100):print(i,......
  • 修改jupyter 打开的浏览器的文件夹存储路径
    一、以管理员身份打开AnacondaPrompt,命令行输入jupyternotebook--generate-config  二、打开生成的配置文件   三、查找并修改  四、删除快捷方式目......
  • jupyter notebook网页形式打开
    一、打开AnacondaPrompt,通过输入condainstalljupyternotebook来安装jupyter模块  二、切换到想要开发代码的目录,输入命令jupyter-notebook.exe ......
  • Jupyter Notebook 输出有颜色的文字
    JupyterNotebook支持HTML语言,所以在Markdowm模式下,直接输入HTML代码即可得到想要的。无论是图片还是文字大小颜色等。<fontcolor="red">红色的文字</font>下面是转来的......
  • python工具jupyternotebook页面打开空白问题解决方法
    jupyternotebook页面打开空白问题解决方法下载anaconda自带的jupyternotebook找到这个配置文件C:\Users\Administrator.jupyter\jupyter_notebook_config.py打开找......
  • jupyter notebook汉化
    jupyternotebook汉化以及安装插件汉化在环境变量中新建一个名为LANG的变量,值为zh_CN.UTF8。重启即可安装插件打开AnacondaPromt,输入activatebase运行下面......
  • Jupyter Notebook特性-可视化输出 【chatgpt生成】
    JupyterNotebook可以输出各种可视化图表,例如线图、散点图、条形图等。这些图表可以直接在Notebook中显示,用户可以通过交互式操作进行缩放、平移等操作,以便更好地探索数......