Skip to content

Instantly share code, notes, and snippets.

@idavydov
idavydov / README.txt
Last active November 8, 2023 19:18 — forked from QuentinAndre/README.txt
A Jupyter NBConvert HTML template adding a toggle to hide/show each code cell.
# You need to put index.html.j2 & conf.json into a directory called, e.g., mytmpl/.
# Typical usage: The --no-prompt is important (layout is all messed up otherwise).
jupyter nbconvert MySuperNotebook.ipynb --to html --no-prompt --template mytmpl/
# By default, all cells are hidden. You can override this behavior for some cells by giving them a 'code_shown' tag.