python-3.x - 如何在 sagemaker 中设置 NotebookApp.iopub_data_rate_limit

标签 python-3.x amazon-sagemaker

我在 sagemaker 中运行 jupyter notebook 时出现错误:

OPub 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)

我尝试了几种解决方案(例如 solution1solution2 ),但都没有用。

有人能知道如何解决这个问题吗?

最佳答案

您可以在 Sagemaker 终端的 ./.jupyter/jupyter_notebook_config.py 中取消注释并编辑此行 c.NotebookApp.iopub_data_rate_limit = 1000000

我使用 vim 编辑器来做到这一点。

关于python-3.x - 如何在 sagemaker 中设置 NotebookApp.iopub_data_rate_limit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60092509/

相关文章:

python-3.x - 是否可以在不使用硬件适配器的情况下直接使用 UART 与自动售货机(使用 MDB)进行通信?

python - 使 tkinter 窗口出现在任务栏中

amazon-web-services - AWS SageMaker 在同一台机器上托管多个模型(ML 计算实例)

amazon-web-services - AWS SageMaker GroundTruth 权限问题(无法读取 list )

amazon-web-services - 如何更改 SageMaker Docker 容器的共享内存?

amazon-web-services - 将自定义脚本作为 Sagemaker Pipelines 的一部分运行

python - 类型检查 Pandas DataFrames

python - 快速查找输入中位数的方法

python - 我该如何修复 AttributeError : 'dict_values' object has no attribute 'count' ?

docker - docker 容器中 "No module named PIL"之后的 "RUN pip3 install Pillow"; dist-packages 目录中既不存在 PIL 也不存在 Pillow