python - jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000 不工作

标签 python python-3.x anaconda jupyter-notebook 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`.

经过一分钟的谷歌搜索后发现解决方案似乎是使用 jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000 启动 jupyter

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

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

最佳答案

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

最好的办法就是运行

jupyter notebook --generate-config

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

看看configuration documentation .

关于python - jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47082416/

相关文章:

python - 导入错误: cannot import name 'SimpleImputer'

python - 继承问题 scipy.stats.pareto

python - 使用日期时间键的字典搜索

python - concurrent.futures.ProcessPoolExecutor() python 中的共享变量

python - TypeError : write() argument must be str, 不是字节,升级到 python 3

python - 无效的 ELF header tensorflow

导入 tensorflow 1.7 时 Python 内核死机

Python单元测试: How to assert the existence of a file or folder and print the path on failure?

python-3.x - 将两个 pandas 列与基于值组合

python-3.x - 在 selenium 上获取当前 url 时遇到问题