Jupyter 笔记本中超出 IOPub 数据速率(查看图像时) [英] IOPub data rate exceeded in Jupyter notebook (when viewing image)

查看:40
本文介绍了Jupyter 笔记本中超出 IOPub 数据速率(查看图像时)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Jupyter 笔记本中查看图像.这是一个 9.9MB 的 .png 文件.

I want to view an image in Jupyter notebook. It's a 9.9MB .png file.

from IPython.display import Image
Image(filename='path_to_image/image.png')

我收到以下错误:

IOPub data rate exceeded.
The notebook server will temporarily stop sending output
to the client in order to avoid crashing it.

有点令人惊讶,在别处报道.

这是预料之中的吗?是否有简单的解决方案?

Is this expected and is there a simple solution?

(错误消息建议更改 --NotebookApp.iopub_data_rate_limit 中的限制.)

(Error msg suggests changing limit in --NotebookApp.iopub_data_rate_limit.)

推荐答案

试试这个:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

或者这样:

yourTerminal:prompt> jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10 

这篇关于Jupyter 笔记本中超出 IOPub 数据速率(查看图像时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆