Python Forum

Full Version: nbconvert and toc threshold
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?

Thanks so much!
Hello,
Just wonder should I put this enquiry under web tutorial?
Brgds,
Millie
Hello ...
Just wonder if anyone is able to tell me whether this is feasible or not?
Setting the toc threshold to 6 (default is 4) and to convert my jupyter notebook (with toc) to a single html (images embed) by using the nbcovert command line at the same time?

brgds,
Millie
Look at.
jupyter nbconvert --help
jupyter nbconvert --help-all # long
See if can find something about threshold there.
Maybe better to ask Jupyter community about this.
A trick can be post is as issue here.