Python Forum
nbconvert and toc threshold
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
nbconvert and toc threshold
#1
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!
Reply
#2
Hello,
Just wonder should I put this enquiry under web tutorial?
Brgds,
Millie
Reply
#3
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
Reply
#4
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020