Skip to content

[toc2] Add a 'download as HTML with toc' for Jupyter >= 5.1#1182

Merged
jcb91 merged 1 commit intoipython-contrib:masterfrom
jfbercher:toc2downmenu
Dec 22, 2017
Merged

[toc2] Add a 'download as HTML with toc' for Jupyter >= 5.1#1182
jcb91 merged 1 commit intoipython-contrib:masterfrom
jfbercher:toc2downmenu

Conversation

@jfbercher
Copy link
Copy Markdown
Member

As mentioned in #1176, added a menu item in File/Download as to download the converted HTML file with toc2 embedded in it. This works for Jupyter version greater than 5.1 and any kernel.

For earlier versions, we still have/keep the "save as with toc" which is system call to jupyter nbconvert --template toc2 CurrentNotebookFile.ipynb, but this approach needs a python kernel.

@jcb91
Copy link
Copy Markdown
Member

jcb91 commented Dec 22, 2017

looks good to me!

@jcb91 jcb91 merged commit 2a4bdf6 into ipython-contrib:master Dec 22, 2017
@jfbercher jfbercher deleted the toc2downmenu branch December 22, 2017 17:34
@qingpeng
Copy link
Copy Markdown

qingpeng commented May 2, 2018

since I am running jupyter on server, honestly I prefer the "save as with toc" option, since that will save the html to the directory on the server rather than download the file to my local laptop...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants