JupyterLab User Settings File

2020-07-03 04:01发布

I leverage Docker containers to launch JupyterLabs and would like the ability to apply user settings directly at launch, instead of configuring user settings through the "Advanced Settings Editor" GUI at every container launch.

In reviewing the following pull request, it does seem that this functionality should exist: https://github.com/jupyterlab/jupyterlab/pull/2585

I have not found anything referencing this capability in the JupyterLab documentation, so any leads would be greatly appreciated!

标签: jupyter-lab
3条回答
我想做一个坏孩纸
2楼-- · 2020-07-03 04:27

Settings for extensions are documented here:

https://jupyterlab.readthedocs.io/en/stable/user/extensions.html#settings

In short, you can supply and overrides.json in <sys-prefix>/share/jupyter/lab/settings where <sys-prefix> can be found by running jupyter lab path.

The example from the docs shows an overrides.json like this:

{
  "@jupyterlab/apputils-extension:themes": {
    "theme": "JupyterLab Dark"
  }
}
查看更多
兄弟一词,经得起流年.
3楼-- · 2020-07-03 04:28

I couldn't find any documentations, however in your folder ~/.jupyter/lab/user-settings/@jupyterlab if you create a custom notebook configuration (for instance), you will have a file created in notebook-extension/tracker.jupyterlab-settings.

You can copy the folder(s) you want to use for each of your container in this location, then when you start a jupyter lab, you should see the custom configuration(s) loaded correctly.

查看更多
祖国的老花朵
4楼-- · 2020-07-03 04:33

Running jupyter-lab --generate-config should generate a config file in /home/<USER>/.jupyter/jupyter_notebook_config.py

查看更多
登录 后发表回答