Skip to content

nbconvert template with toggle button to hide or display code cells in slides

License

Notifications You must be signed in to change notification settings

nathalietran/nbconvert-hide-input-btn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

nbconvert hide code button

Jupyter Book-inspired nbconvert template to add toggle button to hide / display code cells. See subsection Hiding code blocks or entire cells.

To use the template, run:

jupyter nbconvert notebook_to_convert.ipynb --to slides [OPTIONS] --template=hide_cell.tpl

The code cells tagged hidecode will be hidden. A toggle button will appear on the right to display / hide the given code cell.

Note: only run code cells will be hidden. If you want to remove this behaviour, you will have to remove the condition cell.execution_count is not none.

About

nbconvert template with toggle button to hide or display code cells in slides

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages