【问题标题】:How to set NotebookApp.iopub_data_rate_limit in sagemaker如何在 sagemaker 中设置 NotebookApp.iopub_data_rate_limit
【发布时间】:2020-02-06 10:13:50
【问题描述】:

我在 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),但都不起作用。

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

【问题讨论】:

  • 选择下面的答案并将c.NotebookApp.iopub_data_rate_limit = 10000000 添加到.jupyter/jupyter_notebook_config.py 文件的末尾。如果您只是取消注释并添加一个零,则它不起作用,至少我的情况是这样。

标签: python-3.x amazon-sagemaker


【解决方案1】:

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

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

【讨论】:

  • 在此之后我们是否需要重新启动 sagemaker 笔记本实例?还是内核?
猜你喜欢
  • 2017-09-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-06-08
  • 2022-11-09
  • 2019-12-13
  • 2019-12-30
  • 2018-04-15
相关资源
最近更新 更多