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!
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, ~/.
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.
Running jupyter-lab --generate-config
should generate a config file in /home/<USER>/.jupyter/jupyter_notebook_config.py
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" } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With