# How to configure nbconvert in TLJH JupyterLab instances?

**URL:** https://discourse.jupyter.org/t/how-to-configure-nbconvert-in-tljh-jupyterlab-instances/19024
**Category:** The Littlest JupyterHub
**Tags:** how-to, jupyterlab, nbconvert
**Created:** [April 18, 2023, 6:49pm UTC](https://discourse.jupyter.org/t/how-to-configure-nbconvert-in-tljh-jupyterlab-instances/19024 "2023-04-18T18:49:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dwheeler](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/dwheeler/32/1790_2.png) [@dwheeler](https://discourse.jupyter.org/u/dwheeler)
#### Post date: [April 18, 2023, 6:49pm UTC](https://discourse.jupyter.org/t/how-to-configure-nbconvert-in-tljh-jupyterlab-instances/19024/1 "2023-04-18T18:49:07Z")

</div>

I’ve been mashing my head against config files for two days now and can’t figure out this issue. I’d like to simplify the menu options and create a preprocessor to remove inputs/outputs in PDFs based on cell tags. Creation of the file `jupyter_nbconvert_config.py` is fine, and I can get the CLI version of nbconvert to pick it up (`jupyter nbconvert --show-config` under the base environment). However, I can’t seem to get JupyterLab to pick up the settings so that File\>Save and Export Notebook As…\>PDF creates a notebook with hidden cells.

I can’t find any helpful guides on where to put nbconvert settings so that the TLJH-spawned JupyterLab instances pick up the settings. I’ve tried `/opt/tljh/user/etc/jupyter/jupyter_nbconvert_config.py` (and notebook\_config.py). I’ve also tried placing them in `/opt/tljh/user/share/jupyter/nbconvert/jupyter_nbconvert_config.py` and `/opt/tljh/user/etc/jupyter/labconfig/jupyter_nbconvert_config.py`

At this point, I’ve placed those settings everywhere I can imagine and none of them seem to apply. Where should they go?

---

<div class="post-metadata">

### Author: ![dwheeler](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/dwheeler/32/1790_2.png) [@dwheeler](https://discourse.jupyter.org/u/dwheeler)
#### Post date: [April 19, 2023, 2:00pm UTC](https://discourse.jupyter.org/t/how-to-configure-nbconvert-in-tljh-jupyterlab-instances/19024/2 "2023-04-19T14:00:37Z")

</div>

I found a reference in the docs for [jupyter\_contrib\_nbextensions](https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/config.html) that mentioned that settings in `jupyter_config.{py,json}` are loaded by all Jupyter applications. Moving `jupyter_nbconvert_config.py` to jupyter\_config.py` worked, but I feel this isn’t very … sanitary. I’d still like to know the proper location for the settings I’m trying to apply, any assistance would be appreciated.
