Skip to main content

A Jupyter notebook extension to hide code, prompts and outputs.

Project description

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. Check out the demo with Binder

demo

Jupyter Notebook 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

Jupyter Lab Installation

  1. pip instal hide_code[lab]
  2. jupyter lab build

Upgrading with nbextension

  1. pip install hide_code --upgrade
  2. jupyter nbextension install --py hide_code

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

Changes in 0.6.0

Improvements

  • Added experiemental Jupyter Lab support. See Lab usage for details and limitations.
  • Added Binder demo Binder
  • Simplified extension installation. No longer need to use nbextension/serverextension commands after pip install.
  • No longer supporting Python 2.7. Install hide_code==0.5.2 for Python 2.7.
  • 0.5.6 is the last version to support Python 3.6 and older.
  • Added extras_install [all] to install hide_code and all dependencies. Use pip install hide_code[all] to install. Resolves #85.

Documentation

Visit the Wiki.

Requirements

  • Jupyter notebook >6.0
  • Jupyter nbconvert >6.x
  • pdfkit & wkhtmltopdf
  • Python 3.7+

hide_code-hits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hide_code-0.7.0.tar.gz (61.3 kB view hashes)

Uploaded Source

Built Distribution

hide_code-0.7.0-py3-none-any.whl (67.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page