• Register
0 votes
962 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

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

1 vote
0 answers 14 views
14 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 roshan
2 votes
2 answers 5.2K views
5.2K 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 mphil 2.3k points
0 votes
0 answers 12 views
12 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 anonymous
0 votes
1 answer 122 views
122 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 Raphael Pacheco 4.9k points
0 votes
1 answer 375 views
375 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 jwilliam 3.9k points