Today, while running a Python script in Jupyter Notebook launched from Anaconda Navigator, the run was aborted and I received an alert stating "IOPub data rate exceeded". I tried to implement some of the solutions given here and elsewhere on SO, but have run into various issues:
1) One suggestion is to create a <jupyter_notebook_config.py> file through the command line:
$ jupyter notebook --generate-config
This creates the file in <C:\Users\msfea.jupyter>. I am then supposed to comment out the existing
c.NotebookApp.iopub_data_rate_limit = 1000000
and replace it with
c.NotebookApp.iopub_data_rate_limit = 10000000
The problem is that when I open the file (in Thonny), the entire script of ~1300 lines is already commented out. Uncommenting everything doesn’t work, and practically I can’t go through it line by line. I just cannot figure out what the starting appearance of the script should be, much less modify it.
2) Another suggestion is to run
jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10
from Anaconda Navigator's command line. This automatically opens a new instance of Jupyter Notebook in my browser and if I run my script in this new instance of Jupyter, it works! Problem is, it's not permanent. If I close everything down and then relaunch Anaconda Navigator and Jupyter Notebook, my script once again fails with the same error message, "IOPub data rate exceeded". While I suppose I could live with this, it's really not ideal and should be surmountable. If only I knew how!
Thanks for your help.