Robert Lugg
Robert Lugg

Reputation: 1192

set --no-browser from jupyter_notebook_config.py in JupyterLab

I would like to always start 'jupyter lab' with the --no-browser option. I realize I could create an alias, but my question is: How can I change jupyter_notebook_config.py to specify that I want that option

Upvotes: 2

Views: 1601

Answers (2)

Nik O'Lai
Nik O'Lai

Reputation: 3684

As an addition to the answer by Robert Lugg.

It might be the case that your version of JupyterLab expects configuration in a different file, for example, .jupyter/jupyter_server_config.py. Then

jupyter server --generate-config

will generate the file .jupyter/jupyter_server_config.py, which you can then edit setting

c.ServerApp.open_browser = False

Upvotes: 2

Robert Lugg
Robert Lugg

Reputation: 1192

I found it documented here: https://jupyter-notebook.readthedocs.io/en/stable/config.html

The option is NotebookApp.open_browser , so the entry in jupyter_notebook_config.py would be:

c.NotebookApp.open_browser = False

Upvotes: 0

Related Questions