Skip to content

Commit

Permalink
Merge pull request #8 from kirbs-/revert-7-dev
Browse files Browse the repository at this point in the history
Revert "Fixes for issues #4 & #6."
  • Loading branch information
kirbs- committed Feb 1, 2016
2 parents 8ef5fb5 + 78240f1 commit 25b0801
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion hide_code/hide_code.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function ($, celltoolbar){

function toggleHideCode(cell){
var c = $(cell.element);
if (cell.metadata.hideCode && cell.classs_config.classname != 'MarkdownCell'){
if (cell.metadata.hideCode){
c.find('.input_area').hide();
} else {
c.find('.input_area').show();
Expand Down
11 changes: 2 additions & 9 deletions hide_code/hide_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def install(nb_path=None, DEBUG=False):
print('Starting hide_code.js install...')
current_dir = path.abspath(path.dirname(__file__))
config_dirs = j_path.jupyter_config_path()
site_packages_path = get_site_package_dir()
site_packages_path = path.join(os.__file__[:-7], "site-packages")

# check for config directory with a "custom" folder
# TODO update this logic to check if custom.js file exists
Expand Down Expand Up @@ -64,11 +64,4 @@ def install(nb_path=None, DEBUG=False):
else:
print('Unable to install into ' + install_path)
print('Directory doesn\'t exist.')
print('Make sure Jupyter is installed.')

def get_site_package_dir():
os_file = os.__file__
if os_file.endswith('.pyc'):
return path.join(os_file[:-7], "site-packages")
else:
return path.join(os_file[:-6], "site-packages")
print('Make sure Jupyter is installed.')
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def run(self):
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.1.5',
version='0.1.4',

description='A Jupyter notebook extension to hide code.',
long_description=long_description,
Expand Down

0 comments on commit 25b0801

Please sign in to comment.