• Register
0 votes
1.7k views

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
Image(filename='path_to_image/image.png')

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

Solution:

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

Update:

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

0 votes
1 answer 9 views
9 views
Problem: is there any simple solution for this:To change this limit, set the config variable `--notebookapp.iopub_data_rate_limit` .
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
1 answer 4 views
4 views
Problem: Hi need some one’s help with this , is there any body ? change continuous variable to categorical in r
asked Mar 20 PkGuy 13.1k points
1 vote
0 answers 21 views
21 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
0 votes
1 answer 4 views
4 views
Problem: I have an ImportError during the use of anaconda in jupyter notebook and I think many users face this error, anyone fixes it?
asked Apr 1 Jack20 3k points
0 votes
1 answer 4 views
4 views
Problem: Please help me … how can I solve it? how to do piecewise functions in latex
asked Mar 22 Ifra 24.4k points
0 votes
1 answer 44 views
44 views
Problem : How to fix above error: Jupyter' is not recognized as an internal or external command, operable program or batch file..
asked Mar 6 Wafa Abu Yousef 6.1k points
2 votes
2 answers 10.1K views
10.1K 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
1 answer 3 views
3 views
Problem: I tried to find out the solution on the web when I face this problem but I did not get any fruitful information that I can continue if you read the above question and understand what is the solution of this please cooperate with me- Thanks
asked Mar 21 Samiur1 38.4k points
0 votes
0 answers 24 views
24 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 1.2K views
1.2K 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