首页 > 解决方案 > JupyterLab 配置文件——编辑 jupyter_notebook_config.py 没有效果

问题描述

我正在使用 JupyterLab 1.2.3 版

~/.jupyter/jupyter_notebook_config.py通过运行生成了一个文件jupyter-lab --generate-config

在文件的底部,我添加了c.InteractiveShell.ast_node_interactivity = "all".

但是,当我运行时jupyter lab,笔记本的行为仍然就像InteractiveShell.ast_node_interactivity设置了默认值一样。

是否需要任何其他步骤才能使配置文件处于活动状态?或者我如何“调试”以更好地理解问题所在?

标签: jupyter-lab

解决方案


您必须使用以下命令在 IPython 中生成配置文件:

$ ipython profile create

创建的文件将ipython_kernel_config.py 在此文件上,您必须进行指示的更改


推荐阅读