Tasa de datos IOPub excedida al ver la imagen en Jupyter notebook


Quiero ver una imagen en Jupyter notebook. Es un 9.9 MB .archivo png.

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

Obtengo el siguiente error:

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

Un poco sorprendente y reportado en otra parte.

¿Es esto esperado y hay una solución simple?

(Error msg sugiere cambiar el límite en --NotebookApp.iopub_data_rate_limit.)

Author: lmart999, 2017-04-08

2 answers

Me encontré con esto usando networkx y bokeh

Esto funciona para mí en Windows 7 ( tomado de aquí):

  1. Para crear un jupyter_notebook_config.py archivo, con todos los valores predeterminados comentados, puede usar la siguiente línea de comandos:

    $ jupyter notebook --generate-config

  2. Abra el archivo y busque c.NotebookApp.iopub_data_rate_limit

  3. Comente la línea c.NotebookApp.iopub_data_rate_limit = 1000000 y cámbiela a una tasa predeterminada más alta. l usado c.NotebookApp.iopub_data_rate_limit = 10000000

Esta configuración predeterminada implacable está apareciendo en muchos lugares. Ver problemas de git:

Parece que podría resolverse con el 5.1 release

Actualización:

Jupyter notebook está ahora en lanzamiento 5.2.2. Este problema debería haberse resuelto . Actualizar usando conda o pip.

 46
Author: Itay Livni,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-12-15 04:40:53

Prueba esto:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10
 39
Author: Merlin,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-06-21 14:40:05