• Register
0 votes

Problem :

I am trying to view an image in the Jupyter notebook as below. It's size is 9.9MB .png file.

from IPython.display import Image

I am facing the following error :

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

This behavior is very surprising for me and also I think it got already reported elsewhere.

Is this the expected behavior and is there any simple solution on it?

6 5 3
7,540 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

 I had ran into this issue while I was using networkx and bokeh

Below approach works for me in Windows 7 :

1. To create the jupyter_notebook_config.py file, with all the defaults commented out, you can use the below command line:

$ jupyter notebook --generate-config

2. Now you need to open the file and search for c.NotebookApp.iopub_data_rate_limit

3. After that just comment out the line c.NotebookApp.iopub_data_rate_limit = 1000000 and just change it to the higher default rate. l used the c.NotebookApp.iopub_data_rate_limit = 10000000

This unforgiving default config issue is popping up in a lot of places. See git issues:

· jupyter

· IOPub data rate exceeded

It looks like as if it might get resolved with the 5.1 release

9 7 4
38,600 points
0 votes


I ran into this employing networkx and bokeh

This performs for me in Windows 7

  1. To make a jupyter_notebook_config.py file, with all the defaults commented out, you can employ the following command line:

    $ jupyter notebook --generate-config

  2. Open the file and seek for c.NotebookApp.iopub_data_rate_limit

  3. Comment out the line c.NotebookApp.iopub_data_rate_limit = 1000000 and alter it to a higher default rate. l applied c.NotebookApp.iopub_data_rate_limit = 10000000

This unforgiving default config is popping up in a lot of places. View git issues:

  • jupyter

  • IOPub data rate exceeded

It seems like it might obtain resolved with the 5.1 release


Jupyter notebook is currently on release 5.2.2. This problem must have been resolved. Upgrade employing conda or pip.

Attempt this:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

Or this:

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

To solve this behaviour you can either begin the notebook with the command: jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10 i.e with a greater than default iopub.data_rate , or make a jupyter_notebook_config.py 

10 6 4
31,120 points

Related questions

1 vote
0 answers 19 views
v = tf.Variable(0) update = tf.compat.v1.assign(v, v+1) init_op = tf.compat.v1.global_variables_initializer() tf.compat.v1.disable_eager_execution() with tf.compat.v1.Session() as session: session.run(init_op) print(session.run(v)) for _ in range(3): session.run(update) print(session.run(v))
asked Jun 21, 2020 roshan
2 votes
2 answers 7.6K views
Problem : I am very new to Jupyter. I have already installed the Jupyter on my PC. My Configuration is as follows: Windows 10, python 3.x I used below command to install Jupyter. $ pip install jupyter The installation process completed without any issues. But ... “'jupyter' is not recognized as an internal or external command, operable program or batch file.” How to fix above error?
asked Feb 13, 2020 mphil 2.3k points
0 votes
0 answers 20 views
import pandas as pd import numpy as np food = pd.read_csv('~\Desktop\en.openfoodfacts.org.products(1).tsv',sep = "\t") NameError Traceback (most recent call last) <ipython-input-4-fd149ac49856> in <module>() ----> 1 food = pd.read_csv('~\Desktop\en.openfoodfacts.org.products(1).tsv',sep="\t") NameError: name 'pd' is not defined
asked Jul 10, 2020 anonymous
0 votes
1 answer 610 views
Problem: I am beginner to Python programming. I am trying to do some very simple PySide and PyQt tutorials in the IPython. In one of the tasks I simply needs to create the window with some of the sliders to exhibit the slots and signals.But as soon as I close a window of my ... /scratch/<ipython-input-1-88966dcfb499> in main() 29 w.show() 30 app.exec_() ---> 31 sys.exit(0) 32 33 SystemExit: 0
asked Aug 8, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 52 views
2 I'm having trouble getting an ipython console in Spyder. It only offers a python interpreter under the "interpreters" menu. I've seen this issue for a couple of others in Stackoverflow, but didn't have much joy with the proffered solutions. I'm running linux Mint 16 ... messages in yellow and light green). It would be nice anyway to be able to start ipython the normal way from the Spyder menu.
asked Oct 25, 2020 psandprop 2.4k points
0 votes
1 answer 574 views
Problem : Recently I installed the python3 and also jupyter notebook using the pip3 on MacOs 10.9. But when I want to run my widget it gives me error that there is no javascript widget. I have the python3 and R kernels installed in my Jupyter-notebook. ... that in my mac I have the jupyter-nbextension command but the command: jupyter-nbextension enable --py widgetsnbextension Does not work for me.
asked Jan 27, 2020 jwilliam 3.9k points
0 votes
1 answer 122 views
Problem : I am in a process of upgrading my codeigniter from the 1.7.2 to 2.0.1. Everything seems to have gone as expected except I get below error: &ldquo;In order to use the Session class you are required to set an encryption key in your config file.&rdquo; ... .0.1 that has caused above error? What change should I do to fix the above error. Will making the said change break anything for me?
asked Feb 4, 2020 jwilliam 3.9k points
0 votes
2 answers 513 views
Problem : I want to to run my NodeJS version with the nvm but getting following error: $ nvm use v4.2.4 nvm is not compatible with the npm config "prefix" option: currently set to "/Users/z/.npm-global"Run `npm config delete prefix` or `nvm use --delete- ... it. I have set the prefix on purpose to avoid the sudo npm How can I use nvm without losing the prefix for my globally installed packages?
asked Nov 29, 2019 alecxe 7.5k points
0 votes
1 answer 751 views
Problem : When I am trying to execute jupyter notebook in the virtual environment in my Arch Linux, the below error occurred. &ldquo;Error executing Jupyter command 'notebook': [Errno 2] No such file or directory&rdquo; The python version is 3.6, and the jupyter version is 4.3.0 I have researched a lot, but I am just unable to find anything relevant to above issue.
asked Jan 3, 2020 alecxe 7.5k points