Python 如何在 JupyterHub 中设置 NotebookApp.iopub_data_rate_limit 和其他 NotebookApp 设置?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43490495/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 23:08:35  来源:igfitidea点击:

How to set NotebookApp.iopub_data_rate_limit and others NotebookApp settings in JupyterHub?

pythonconfigurationjupyter-notebookjupyterjupyterhub

提问by DuckQueen

I want to start my notebooks with jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000000arguments. Where one could set it in JupyterHub?

我想用jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000000参数开始我的笔记本。在 JupyterHub 中可以在哪里设置它?

回答by Workhorse

Open the command line and enter

打开命令行并输入

jupyter notebook --NotebookApp.iopub_data_rate_limit=1e10

jupyter notebook --NotebookApp.iopub_data_rate_limit=1e10

This should start jupyter with the increased data rate.

这应该以增加的数据速率启动 jupyter。

回答by Adil Blanco

You have to create config file using this command $ jupyter notebook --generate-config, The answer in this link

您必须使用此命令创建配置文件$ jupyter notebook --generate-config,此链接中的答案

回答by Vahab

04: "IOPUB data rate exceeded" problem of "jupyter low memory.." in windows:

04:windows中“jupyter低内存..”的“IOPUB数据速率超出”问题:

  1. open cmd:
  2. in main path:C:\Users\siege> (this is my root path)

    type the command: "jupyter notebook --generate-config"

    the you hav: C:\Users\siege>jupyter notebook --generate-config

  3. system will generate "jupyter_notebook_config.py" in path:C:\Users\siege>.jupyter

  4. open "jupyter_notebook_config.py" find the line

    #c.NotebookApp.iopub_data_rate_limit = 1000000

    uncomment it and change it to:

    c.NotebookApp.iopub_data_rate_limit = 100000000

  5. save it

  6. restart jupyter

  1. 打开命令:
  2. 在主路径:C:\Users\siege>(这是我的根路径)

    输入命令:“jupyter notebook --generate-config”

    你有:C:\Users\siege>jupyter notebook --generate-config

  3. 系统会在路径中生成“jupyter_notebook_config.py”:C:\Users\siege>.jupyter

  4. 打开“jupyter_notebook_config.py”找到这一行

    #c.NotebookApp.iopub_data_rate_limit = 1000000

    取消注释并将其更改为:

    c.NotebookApp.iopub_data_rate_limit = 100000000

  5. 保存

  6. 重启 jupyter

https://www.youtube.com/watch?v=B_YlLf6fa5A

https://www.youtube.com/watch?v=B_YlLf6fa5A

回答by Ayoub Benayache

to enbale it with jupyter-lab, use the following cmd for used environment

要使用 jupyter-lab 启用它,请在使用环境中使用以下 cmd

conda activate 'your env'
jupyter-lab --NotebookApp.iopub_data_rate_limit=1e10