jupyter notebook --NotebookApp.iopub_data_rate_limit = 10000000无效

LMG*_*gne 5 python python-3.x anaconda jupyter jupyter-notebook

我遇到了这个错误

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 jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000

但是,当我使用Anaconda Prompt执行此操作时,它会打开一个不同的jupyter窗口,其中包含不同的文件列表(它看起来像系统文件,扩展名为.exe的东西).这个我现有的Jupyter笔记本和Jupyter实验室没有注册增加的数据速率限制,如果我尝试打开任何文件,添加任何新文件或上传现有的jupyter笔记本,Anaconda Prompt都会返回权限错误.

我似乎无法找到任何关于此的文档 - 关于如何修复的任何想法?

nev*_*ves 0

当您再次运行 jupyter 时,您将创建另一个实例,该实例对第一个实例一无所知。如果您查看浏览器中的网址,您会发现它们在“localhost”后面有不同的数字。可能一个是“localhost:8888”,另一个是“localhost:”。

最好的方法就是跑步

jupyter notebook --generate-config
Run Code Online (Sandbox Code Playgroud)

然后您将有一个~/.jupyter/jupyter_notebook_config.py可以编辑的配置文件,它将适用于您打开的所有实例。增加NotebookApp.iopub_data_rate_limit并重新启动内核即可使其正常工作。

看一下配置文档