Search code examples
jupyter-notebookipythonjupyter

IOPub data rate exceeded in Jupyter notebook (when viewing image)


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')

I get the below error:

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

A bit surprising and reported elsewhere.

Is this expected and is there a simple solution?

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


Solution

  • Try this:

    jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10
    

    Or this:

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