我在标题中显示的问题有两个子问题:
-
jupyterlab store 系统默认
和用户preference
files?
- 在GUI的高级设置编辑页面/笔记本中显示为Bellow图片中的显示。
-
- 我可以找到的最类似的文件是
/usr/local/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json
,但我不是当然,如果此文件是系统默认的
或用户偏好
或
-
我想通过编辑配置文件来自定义自己的jupyterlab设置我在网站上发现了几个文件路径建议:
-
/usr/local/share/jupyter/lab/settings/overrides.json
-
〜/.jupyter/lab/user-settings/@jupyterlab/notebook-extension/tracker.jupyterlab-settings
-
/usr/local/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json
- 我的问题是:如果我想调整设置(如
代码折叠, line包装?或以上都没有,我应该使用其他文件?
ps。因为我在Docker容器中启动Jupyterlab,然后经常重建容器,所以我想通过编辑配置文件来更改默认设置,而不是每次在GUI中更改这些设置。
谢谢大家。
参考:
I have two sub-questions of the question shown in title:
-
Where does JupyterLab store System Defaults
and User Preference
files?
- Which are displayed in the GUI's Advanced Settings Edit page/Notebook as show in bellow picture.

- The most similar file I can find is
/usr/local/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json
, but I'm not sure if this file is for System Defaults
or User Preference
or neither
-
I want to customized my own JupyterLab settings by editing the config file, and there are several file path suggestion I found in websites:
/usr/local/share/jupyter/lab/settings/overrides.json
~/.jupyter/lab/user-settings/@jupyterlab/notebook-extension/tracker.jupyterlab-settings
/usr/local/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json
- My question is: Which correct file should I edit if I want to adjust settings like
code folding, line wrapping? Or none of above, there is other file I should use?
PS. Because I start JupyterLab in a docker container, and I rebuild the container frequently, I want to change the default settings by editing the config file instead of changing these settings in the GUI every time.
Thank you all.
ref:
发布评论
评论(1)
codefolding & WordWarping 设置与Jupyterlab
扩展
-@jupyterlab/notebook-extension
和插件
->跟踪器
。有两个Jupyter Lab用户设置文件,您可以编辑以调整代码折叠设置。
因此,有两个选项,您可以选择其中之一:
文件1:
〜/.jupyter/lab/user-settings/@jupyterlab/notebook-extension/tracker.jupyterlab-settings
< /p>根据:
因此,我们应该编辑
〜/.jupyter/lab/user-settings/@jupyterlab/notebook-extension/tracker.jupyterlab-settings
您在此文件中编写的任何设置都将覆盖默认设置
文件2:
/usr/local/share/jupyter/jupyter/lab/schemas/@jupyterlab/notebook-extension-extension-extension/tracker.json
我们还可以编辑
/usr/local/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json
。。
但是,通过编辑此文件,您是直接更改默认设置。
The codeFolding & wordWarping settings are related to the jupyterlab
extension
—@jupyterlab/notebook-extension
and theplugin
—tracker
.There are two Jupyter Lab User Setting files you can edit to adjust codeFolding setting.
So there are two options, you can choose one of them:
file 1:
~/.jupyter/lab/user-settings/@jupyterlab/notebook-extension/tracker.jupyterlab-settings
According to the documents of jupyter lab:
So we should edit
~/.jupyter/lab/user-settings/@jupyterlab/notebook-extension/tracker.jupyterlab-settings
.Any settings you write in this file, would override the default settings
file 2:
/usr/local/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json
We can also edit
/usr/local/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json
.But by editing this file, you are change default settings directly.