# Does jupyterLab respect options from jupyter\_notebook\_config.py?

**URL:** <https://discourse.jupyter.org/t/does-jupyterlab-respect-options-from-jupyter-notebook-config-py/15084>\
**Category:** JupyterLab\
**Created:** [July 26, 2022, 2:21am UTC](https://discourse.jupyter.org/t/does-jupyterlab-respect-options-from-jupyter-notebook-config-py/15084 "2022-07-26T02:21:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbissey](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fbissey/32/7598_2.png) [@fbissey](https://discourse.jupyter.org/u/fbissey)\
**Post date:** [July 26, 2022, 2:21am UTC](https://discourse.jupyter.org/t/does-jupyterlab-respect-options-from-jupyter-notebook-config-py/15084/1 "2022-07-26T02:21:35Z")

</div>

I am asking because I have migrated from jupyter to jupyterlab and I had the following set:

```auto
c.FileManagerMixin.use_atomic_writing = False
c.FileContentsManager.use_atomic_writing = False

```

I have those set because I am writing to a network filesystem and atomic write is a problem for me. As per [Config file and command line options — Jupyter Notebook 6.4.12 documentation](https://jupyter-notebook.readthedocs.io/en/stable/config.html) documentation:

```auto
FileManagerMixin.use_atomic_writingBool
Default: True
 
By default notebooks are saved on disk on a temporary file and then if successfully written, it replaces the old ones.
This procedure, namely ‘atomic_writing’, causes some bugs on file system without operation order enforcement (like some networked fs). If set to False, the new notebook is written directly on the old one which could fail (eg: full filesystem or quota )

```

Which is exactly my case with SMB. But since I have moved to jupyterlab temporary files have come back causing troubles.

---

<div class="post-metadata">

**Author:** ![bollwyvl](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/bollwyvl/32/904_2.png) [@bollwyvl](https://discourse.jupyter.org/u/bollwyvl)\
**Post date:** [July 26, 2022, 1:43pm UTC](https://discourse.jupyter.org/t/does-jupyterlab-respect-options-from-jupyter-notebook-config-py/15084/2 "2022-07-26T13:43:18Z")

</div>

If launched with `jupyter lab`, the default file would be `jupyter_server_config.py`, and the main app is `ServerApp`, not `NotebookApp`… but these contents things are probably fine.

`jupyter_config.py` will get picked up by both, and you can duplicate values… sometimes will do this to ensure it working on e.g. binder.

---

<div class="post-metadata">

**Author:** ![fbissey](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fbissey/32/7598_2.png) [@fbissey](https://discourse.jupyter.org/u/fbissey)\
**Post date:** [July 26, 2022, 9:04pm UTC](https://discourse.jupyter.org/t/does-jupyterlab-respect-options-from-jupyter-notebook-config-py/15084/3 "2022-07-26T21:04:47Z")

</div>

This is deployed from jupyterhub for a course. So jupyterlab is spawned from jupyterhub with the systemd spawner. I am guessing one point to check would be locations, I have a global version of the file at `/etc/jupyter/jupyter_notebook_config.py` and one at `~/.jupyter/jupyter_notebook_config.py` and neither seem to be picked or have any effect.

Now an interesting point of your comment is about `ServerApp` and `NotebookApp`, and I am not sure what you mean by that. Is it something I should add somewhere in the configuration?

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [July 26, 2022, 9:14pm UTC](https://discourse.jupyter.org/t/does-jupyterlab-respect-options-from-jupyter-notebook-config-py/15084/4 "2022-07-26T21:14:21Z")

</div>

If you’re using the latest JupyterHub (2.x) the default is `ServerApp`. There some information on switching between the two here: [Configuring user environments — JupyterHub 2.3.1 documentation](https://jupyterhub.readthedocs.io/en/stable/reference/config-user-env.html#switching-back-to-classic-notebook)

---

<div class="post-metadata">

**Author:** ![fbissey](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fbissey/32/7598_2.png) [@fbissey](https://discourse.jupyter.org/u/fbissey)\
**Post date:** [July 26, 2022, 10:07pm UTC](https://discourse.jupyter.org/t/does-jupyterlab-respect-options-from-jupyter-notebook-config-py/15084/5 "2022-07-26T22:07:05Z")

</div>

Thank you! Figuring out that I needed to change configuration file to `jupyter_server_config.py` and set options there was what I needed to know.
