Jupyter Notebook报错:IOPub data rate exceeded解决办法

当用jupyter notebook写代码遇上print无输出结果,正如下图问题时

不要慌张,这不是代码报错,而是IOPub数据速率受限,也就是jupyter限制输出

解决方法

1.cmd打开命令行窗口,输入jupyter notebook --generate-config(notebook后有个空格)

如果出现这种情况,换成在Anaconda Prompt中输入jupyter notebook --generate-config

2.出现jupyter的配置文件路径,不要输入,只需按照这个路径找到jupyter_notebook_config.py文件

 3.用记事本或者python打开文件,ctrl+F打开寻找窗口,输入iopub_data_rate_limit

找到特定行,取消注释,加上很多0

 

 4.重启jupyter notebook,显示正常

猜你喜欢

转载自blog.csdn.net/xucanlax/article/details/124462706