如何更改 .jupyter 的 --NotebookApp.iopub_data_rate_limit?

Luk*_*ras 7 python windows-10 jupyter-notebook

这是我第一次接触 stackoverflow,总的来说,我对编程还是很陌生。我试图从 csv 文件中创建一个列表,结果是:

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

我想我已经在这里找到了我的实际问题的解决方案......

在 Jupyter 笔记本中查看图像时超出了 IOPub 数据速率

...但是我不知道如何更改我的 jupiter 笔记本的设置来更改 data_rate_limit。

小智 8

在你的配置文件中jupyter_notebook_config.py

如果取消注释并编辑该行:

c.NotebookApp.iopub_data_rate_limit = 1000000

这将改变数据速率限制。

如果您没有该文件,您可以使用以下命令生成它: jupyter notebook --generate-config
它将位于类似的位置~/.jupyter/

该配置文件还允许您设置诸如msg_rate_limit(限制消息发送到 iopub)和rate_limit_window(这将改变检查速率限制的速度)等值,以及许多其他有用的笔记本配置...


小智 5

要更改限制,请在命令行中键入以下内容:

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

然后打开的笔记本会有新的限制。