hide_code is a Jupyter notebook extension to selectively hide code, prompts and outputs with PDF and HTML exporting support.
pip install hide_code
jupyter nbextension install --py hide_code
jupyter nbextension enable --py hide_code
jupyter serverextension enable --py hide_code
Note: add --sys-prefix
to jupyter nbextension
to install into virtualenv or conda environment.
Versions prior to 0.4 were installed by bootstrapping custom.js and jupyter configuration files. Pip uninstall does not remove these files. Upgrade to 0.4, then run python -c "import hide_code; hide_code.uninstall_bootrapped_files()"
.
Visit the Wiki.
- Jupyter notebook 4.x+
- Jupyter nbconvert ~>4.2+ if using nbconvert command line exporting. nbconvert 5.x does not work with hide_code.
- pdfkit & wkhtmltopdf
- Python 2.7 or 3.3+