Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change --NotebookApp.iopub_data_rate_limit for .jupyter?

This is my first time on stackoverflow, in general, I am quite new to programming at all. I tried to create a list out of a csv-file resulting in:

IOPub data rate exceeded.
The notebook server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--NotebookApp.iopub_data_rate_limit`.

Current values:
NotebookApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
NotebookApp.rate_limit_window=3.0 (secs)

I guess I already found the solution to my actual problem here...

IOPub data rate exceeded when viewing image in Jupyter notebook

... however I do not know how to change the settings of my jupiter notebook to change the data_rate_limit.

like image 696
Lukas Kaspras Avatar asked Oct 10 '18 00:10

Lukas Kaspras


2 Answers

To change the limit, type the following into the command line :

jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000

Then the notebook opened will have the new limit.

like image 184
dbh21 Avatar answered Sep 22 '22 15:09

dbh21


In your config file jupyter_notebook_config.py

if you uncomment and edit the line:

c.NotebookApp.iopub_data_rate_limit = 1000000

This will change the data rate limit.

If you don't have that file, you can generate it using: jupyter notebook --generate-config
and it will be located somewhere like ~/.jupyter/

This config file will also let you set values such as msg_rate_limit (which limits messages to iopub) and rate_limit_window (which will change how quickly it checks for the rate limits), among many other useful notebook configurations...

like image 35
scottbaker Avatar answered Sep 22 '22 15:09

scottbaker