# Jupyter-lite.json not taken into account

**URL:** <https://discourse.jupyter.org/t/jupyter-lite-json-not-taken-into-account/21717>\
**Category:** JupyterLab\
**Created:** [October 2, 2023, 7:03pm UTC](https://discourse.jupyter.org/t/jupyter-lite-json-not-taken-into-account/21717 "2023-10-02T19:03:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThibautDR](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/thibautdr/32/13005_2.png) [@ThibautDR](https://discourse.jupyter.org/u/ThibautDR)\
**Post date:** [October 2, 2023, 7:03pm UTC](https://discourse.jupyter.org/t/jupyter-lite-json-not-taken-into-account/21717/1 "2023-10-02T19:03:29Z")

</div>

Hello everyone,

I’ve been playing with JupyterLite for a few weeks. I noticed a strange behavior with the use of the _jupyter-lite.json_ file. I’ve added an extension to extend the launcher. Therefore I need to disable the original Launcher so that my custom one replace it. I’m using the following as my _jupyter-lite.json_:

```auto
{
    "jupyter-lite-schema-version": 0,
    "jupyter-config-data": {
      "disabledExtensions": ["@jupyterlab/launcher-extension"]
    },
    "faviconUrl": "./lab/favicon.ico"
}

```

When I build and then serve JupyterLite for the first time, it works fine. The Launcher is deactivated.

Now, if I delete the output or “dist” folder, build again and then serve JupyterLite, the _jupyter-lite.json_ file is not taken into account. The Launcher isn’t deactivated. While investigating the problem I found out that if I update the _json-lite.json_ and save it, then serving JupyterLite again would take it into account.

I was reluctant to open an issue as I’m not sure I’m doing things correctly here. But this behavior seems unexpected.

Any insights or advice on how to avoid this problem?

Thank you

---

<div class="post-metadata">

**Author:** ![mahendrapaipuri](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/mahendrapaipuri/32/6800_2.png) [@mahendrapaipuri](https://discourse.jupyter.org/u/mahendrapaipuri)\
**Post date:** [October 5, 2023, 11:51am UTC](https://discourse.jupyter.org/t/jupyter-lite-json-not-taken-into-account/21717/2 "2023-10-05T11:51:25Z")

</div>

Do you still have this problem? I cannot reproduce your issue with the recent `jupyterlite`.

---

<div class="post-metadata">

**Author:** ![jtp](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/jtp/32/19100_2.png) [@jtp](https://discourse.jupyter.org/u/jtp)\
**Post date:** [October 5, 2023, 4:12pm UTC](https://discourse.jupyter.org/t/jupyter-lite-json-not-taken-into-account/21717/3 "2023-10-05T16:12:49Z")

</div>

> [@ThibautDR](#):
>
> if I delete the output or “dist” folder, build again and then serve JupyterLite, the _jupyter-lite.json_ file is not taken into account.

Maybe you can also deleting `.jupyterlite.doit.db` if there is one lying around.

---

<div class="post-metadata">

**Author:** ![ThibautDR](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/thibautdr/32/13005_2.png) [@ThibautDR](https://discourse.jupyter.org/u/ThibautDR)\
**Post date:** [October 5, 2023, 8:26pm UTC](https://discourse.jupyter.org/t/jupyter-lite-json-not-taken-into-account/21717/4 "2023-10-05T20:26:58Z")

</div>

Hi @mahendrapaipuri, yes I am still reproducing the issue. However, I tried @jtp’s recommendation and it worked. Thank you both for your responses! I appreciate it.

So, it looks like `.jupyterlite.doit.db` is creating this behavior. If you delete the “output” folder and don’t delete the `.jupyterlite.doit.db`, then the `jupyter-lite.json` file isn’t taken into account by the `jupyter lite serve` command.

---

<div class="post-metadata">

**Author:** ![jtp](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/jtp/32/19100_2.png) [@jtp](https://discourse.jupyter.org/u/jtp)\
**Post date:** [October 5, 2023, 8:29pm UTC](https://discourse.jupyter.org/t/jupyter-lite-json-not-taken-into-account/21717/5 "2023-10-05T20:29:35Z")

</div>

It’s likely related to the underlying `doit` caching logic in the `jupyter-lite` CLI.

@ThibautDR would you mind opening an issue on the [JupyterLite repo](https://github.com/jupyterlite/jupyterlite)? Thanks!

---

<div class="post-metadata">

**Author:** ![ThibautDR](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/thibautdr/32/13005_2.png) [@ThibautDR](https://discourse.jupyter.org/u/ThibautDR)\
**Post date:** [October 5, 2023, 8:55pm UTC](https://discourse.jupyter.org/t/jupyter-lite-json-not-taken-into-account/21717/6 "2023-10-05T20:55:57Z")

</div>

For reference: [Issue with the doit caching logic jupyter-lite CLI (Jupyter-lite.json not taken into account) · Issue #1194 · jupyterlite/jupyterlite · GitHub](https://github.com/jupyterlite/jupyterlite/issues/1194)

---

<div class="post-metadata">

**Author:** ![GAUTAM\_SARAWAGI](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/gautam_sarawagi/32/12758_2.png) [@GAUTAM\_SARAWAGI](https://discourse.jupyter.org/u/GAUTAM_SARAWAGI)\
**Post date:** [August 23, 2024, 5:03pm UTC](https://discourse.jupyter.org/t/jupyter-lite-json-not-taken-into-account/21717/7 "2024-08-23T17:03:39Z")

</div>

@ThibautDR Any updates on the above issue. I am also experincing the same issue after deleting the .jupyterlite.doit.db .
