Skip to content

ray56/hide_code

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hide_code

PyPI version MIT license

Release: Travis release build Dev: Dev Build Status

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 hide_code toggle

Normal

image1.1

Hide code enabled

image1.2

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.

image2

Normal

image3.q

Hide code enabled

image3.2

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

About

Hide code and prompts in Jupyter/IPython notebooks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 69.5%
  • JavaScript 30.5%