Nbconvert and toc threshold

Hello Everyone!

I would like to convert my jupyter notebook (with toc) to a single html (images embeded) with the following command:

jupyter nbconvert --to html_toc --ExtractOutputPreprocessor.enabled=False file1.ipynb

I found this from google search and it works!

However I don’t know how to set the toc threshold to 6 (default is 4) by using the nbcovert command line. (I know how to set it in jupyter notebook though.)

I checked my .jupyter\nbconfig\notebook.json is already set to 6
“toc2”: {
“threshold”: “6”
}

Can anyone help me out? I have also looked up jupyter nbconvert - - help, unfortunately I cannot find anything there :frowning:

Thanks so much!