Jupyter笔记本电脑突然变得非常慢

S.E*_*.EB 8 python jupyter jupyter-notebook

我曾经在anaconda环境中很好地运行jupyter。在显示警告后

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`.
Run Code Online (Sandbox Code Playgroud)

一旦我通过以下命令对其进行了更改:

$jupyter notebook --NotebookApp.iopub_data_rate_limit=2147483647
Run Code Online (Sandbox Code Playgroud)

它突然变得非常缓慢,即使它没有打开笔记本的内容。在谷歌浏览器的左下方显示:

在此处输入图片说明

并花费很长时间打开笔记本,并且打开的笔记本中的颜色Home不是绿色。我不知道为什么?原因是什么,如何重新启动Jupyter Notebook配置?

你能帮我这个忙吗?

小智 6

我在使用jupyter笔记本电脑时遇到了同样的问题。我意识到当我将限制设置得太高时,jupyter会变得太慢。

例如

pd.set_option('display.max_columns', 50000) 造成严重的时间问题。

我将其更改为

pd.set_option('display.max_columns', 50) 问题解决了。

对于你的情况

使用

$jupyter notebook --NotebookApp.iopub_data_rate_limit=1000000

我认为这可以解决您的问题

谢谢

  • @EricOLebigot,它可能指的是“pandas”包,在处理数据时经常使用。 (2认同)