Skip to content
 
 

Repository files navigation

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

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

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.

New in 0.5.3, 0.5.5 and 0.5.6

Improvements

  • Added Binder demo Binder
  • Simplified extension installation. No longer need to use nbextension/serverextension commands after pip install.
  • No longer supporting Python 2.7 or . Install hide_code==0.5.2 for Python 2.7.
  • 0.5.6 is the last version to support Python versions below 3.7.

Bug Fixes

  • Fixed latexpdf exporting.
  • Changed nbconvert --to hide_code_pdf to use pdfkit.
  • Fixed issue exporting notebooks after renaming a notebook.
  • Resolved issue exporting notebooks with spaces in notebook name.
  • Updated reading file to always use utf-8 encoding. This should resolve non-latin character issues.
  • Renamed license file.

Documentation

Visit the Wiki.

Requirements

  • Jupyter notebook ~>5.1
  • Jupyter nbconvert ~>5.0.
  • pdfkit & wkhtmltopdf
  • Python 3.4+

hide_code-hits

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages