/hide_code

Code, prompt and output hiding for Jupyter/IPython notebooks.

Primary LanguagePythonMIT LicenseMIT

Hide_code

PyPI version MIT license Release: Travis release build Dev: Dev Build Status

hide_code is a Jupyter notebook extension to selectively hide code, prompts and outputs with PDF and HTML exporting support.

demo

Installation

  1. pip install hide_code
  2. jupyter nbextension install --py hide_code
  3. jupyter nbextension enable --py hide_code
  4. jupyter serverextension enable --py hide_code

Note: add --sys-prefix to jupyter nbextension to install into virtualenv or conda environment.

Upgrading from 0.3.1?

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()".

Documentation

Visit the Wiki.

Requirements

  • 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+