JupyterLab内存溢出导致卡死的解决方法

最近在windows环境下用JupyterLab做sklearn机器学习,碰到加入分枝随机模式参数后,运行卡死的情况,解决方法如下:

 

1、打开cmd使用命令生成配置文件

jupyter-lab --generate-config

  系统会返回配置文件生成路径:

Writing default config to: C:\Users\xxx\.jupyter\jupyter_lab_config.py

 

2、打开上述路径的jupyter_lab_config.py(使用记事本或notepad等文本编辑器即可),并编辑NotebookApp.max_buffer_size(删除#号注释)

NotebookApp.max_buffer_size = 你想分配的内存大小(以字节为单位)

 

3、重新运行JupyterLab

  

 

posted @ 2022-04-12 09:43  shinonomeasahi  阅读(1249)  评论(0编辑  收藏  举报

博主技术水平有限,如有遗漏或错误之处,欢迎指正