Skip to main content

A Jupyter notebook extension to hide code.

Project description

Hide_code

https://img.shields.io/github/license/mashape/apistatus.svg

Release build

https://travis-ci.org/kirbs-/hide_code.svg?branch=master

Development build

https://travis-ci.org/kirbs-/hide_code.svg?branch=dev)

Introduction

hide_code is an extension for Jupyter/IPython notebooks to selectively hide code and prompts. Make a notebook a code free document for exporting or presenting with a single click by pressing

https://raw.githubusercontent.com/kirbs-/hide_code/dev/images/button.png

Normal

https://raw.githubusercontent.com/kirbs-/hide_code/dev/images/1.1.png

Hide code enabled

https://raw.githubusercontent.com/kirbs-/hide_code/dev/images/1.2.png

Or customize each cell by selecting “Hide code” from the Cell Toolbar dropdown. Then use “Hide Code” and “Hide Prompts” checkboxes to hide the specific cell’s code or cell’s input/output prompts.

https://raw.githubusercontent.com/kirbs-/hide_code/dev/images/2.png

Normal

https://raw.githubusercontent.com/kirbs-/hide_code/dev/images/3.1.png

Hide code enabled

https://raw.githubusercontent.com/kirbs-/hide_code/dev/images/3.2.png

Installation

Via pip

pip install hide_code

Via setuptools

  1. Download and unzip this repository.

  2. Change to unzipped directory.

  3. Execute python setup.py install

Installation Troubleshooting

If installation complains the directory doesn’t exist, you’re Jupyter/IPython installation probably isn’t in one of the usual places. Locate Jupyter’s configuration directory, then use code below to install in a non-standard directory. ` import hide_code.hide_code as hc dir = “<full path to Jupyter config directory>” hc.install(dir) `

Requirements

  • Jupyter notebook 4+

  • Python 2.7+ if installing with pip

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.1.6.tar.gz (6.5 kB view hashes)

Uploaded Source

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