jupyter-lab - 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
设置了默认值一样。
是否需要任何其他步骤才能使配置文件处于活动状态?或者我如何“调试”以更好地理解问题所在?
解决方案
您必须使用以下命令在 IPython 中生成配置文件:
$ ipython profile create
创建的文件将ipython_kernel_config.py
在此文件上,您必须进行指示的更改
推荐阅读
- python - 可以使用元组索引找到列表的长度吗?
- javascript - 如何在上传到数据库之前拖动和重新定位图像?
- node.js - nginx.conf文件中的nginx配置问题
- sql - 如何查看每个员工在哪个类别中销售的商品最多?我只能显示员工的姓名和销售的商品
- python - 在 Python 中创建一个具有相同键和值的新字典,该字典从另一个字典中取平均值
- visual-studio-code - 在 VSCode 中使用环境变量
- ios - 如何在 Objective-C 中挂钩 Apple 的 `os_log_with_type` 方法
- flutter - 为什么新值没有显示在屏幕上?
- c++ - 如何解决 C++ 中不明确的函数选择?
- javascript - 为 Bootstrap 主题运行 npm i gulp-cli g 时权限被拒绝