Skip to content

Commit 8015ad0

Browse files
authored
Add exporter name for toc2 nbconvert
(I've found myself in the unfortunate position of a list of 6 `custom (.html)` exporters in the "Download As" menu)
1 parent 882fbb0 commit 8015ad0

File tree

1 file changed

+3
-0
lines changed
  • src/jupyter_contrib_nbextensions/nbconvert_support

1 file changed

+3
-0
lines changed

src/jupyter_contrib_nbextensions/nbconvert_support/toc2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ class TocExporter(HTMLExporter):
3232
3333
jupyter nbconvert --to html_toc FILE.ipynb
3434
"""
35+
36+
export_from_notebook = "HTML + ToC"
37+
3538

3639
def _file_extension_default(self):
3740
return '.html'

0 commit comments

Comments
 (0)