Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JupyterLab User Settings File

Tags:

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!

like image 720
Chris McPherson Avatar asked Feb 23 '18 15:02

Chris McPherson


People also ask

Where is settings in Jupyter Notebook?

The notebook server can be run with a variety of command line arguments. A list of available options can be found below in the options section. Defaults for these options can also be set by creating a file named jupyter_notebook_config.py in your Jupyter folder. The Jupyter folder is in your home directory, ~/.

How do I change my JupyterLab home working directory?

Changing Working DirectoryType command cd <your new work directory> and enter, and then type Jupyter Notebook in that terminal, a new Jupyter Notebook will appear in the new tab with your new work directory.


2 Answers

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

like image 71
Zeke Arneodo Avatar answered Nov 17 '22 09:11

Zeke Arneodo


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"   } } 
like image 40
bsimpson53 Avatar answered Nov 17 '22 09:11

bsimpson53