Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter notebook has become very slow suddenly

I used to run jupyter in an anaconda environment very well. After showing a warning on

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

once I changed it by this command:

$jupyter notebook --NotebookApp.iopub_data_rate_limit=2147483647

it has suddenly become very slow, even it is not opening the content of the notebook. In the left bottom of Google chrome browser shows :

enter image description here

And take long time to open the notebook, and the color of the opened notebook in Home is not green. I do not know why? What is the reason and how can I restart Jupyter Notebook configuration?

Could you please help me with this?

like image 707
S.EB Avatar asked Mar 11 '18 02:03

S.EB


1 Answers

I was having the same problem with the Jupyter notebook. I realized that Jupiter gets too slow when I set the limits too high.

For example,

import pandas as pd

pd.set_option('display.max_columns', 50000) was causing serious time issues.

I changed it to:

pd.set_option('display.max_columns', 50) and the problem was solved.

In your case, you can use:

$jupyter notebook --NotebookApp.iopub_data_rate_limit=1000000

I think this will solve your problem.

Thanks

like image 174
murat yalçın Avatar answered Oct 16 '22 04:10

murat yalçın