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
How to set NotebookApp.iopub_data_rate_limit and others NotebookApp settings in JupyterHub?
提问by DuckQueen
I want to start my notebooks with jupyter notebook --NotebookApp.iopub_data_rate_limit=10000000000
arguments. 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
回答by Vahab
04: "IOPUB data rate exceeded" problem of "jupyter low memory.." in windows:
04:windows中“jupyter低内存..”的“IOPUB数据速率超出”问题:
- open cmd:
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
system will generate "jupyter_notebook_config.py" in path:C:\Users\siege>.jupyter
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
save it
restart jupyter
- 打开命令:
在主路径:C:\Users\siege>(这是我的根路径)
输入命令:“jupyter notebook --generate-config”
你有:C:\Users\siege>jupyter notebook --generate-config
系统会在路径中生成“jupyter_notebook_config.py”:C:\Users\siege>.jupyter
打开“jupyter_notebook_config.py”找到这一行
#c.NotebookApp.iopub_data_rate_limit = 1000000
取消注释并将其更改为:
c.NotebookApp.iopub_data_rate_limit = 100000000
保存
重启 jupyter
回答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