3

I get the following error message when I try to import a .txt file with the following code,

with open("cobuy.txt", "r+") as my_file:
    for item in my_file:
        my_file.write("%s\n" % item)

text = open("obuy.txt").read()

text

:

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`.

From googling around, it seems there is a problem with Jupyter Notebook version 5.0. It shows that you can put the following code in the terminal to resolve that: jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000000, I can't seem to get this to work: https://github.com/jupyter/notebook/issues/2287

Are there any other solutions to this?

bernando_vialli
  • 947
  • 4
  • 12
  • 27

1 Answers1

4

This solution is working for me.

Start the notebook as below:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10
tuomastik
  • 4,559
  • 5
  • 36
  • 48
Regi Mathew
  • 2,603
  • 3
  • 24
  • 38