https://github.com/kirbs-/hide_code
Code, prompt and output hiding for Jupyter/IPython notebooks.
https://github.com/kirbs-/hide_code
code-hiding export jupyter nbconvert notebook pdf-export
Last synced: about 2 months ago
JSON representation
Code, prompt and output hiding for Jupyter/IPython notebooks.
- Host: GitHub
- URL: https://github.com/kirbs-/hide_code
- Owner: kirbs-
- License: mit
- Created: 2015-09-19T20:56:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T11:56:22.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T04:12:29.576Z (8 months ago)
- Topics: code-hiding, export, jupyter, nbconvert, notebook, pdf-export
- Language: HTML
- Homepage:
- Size: 1.23 MB
- Stars: 371
- Watchers: 11
- Forks: 44
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hide_code
 
Release:  Dev: 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 [](https://mybinder.org/v2/gh/kirbs-/hide_code/master?filepath=demo.ipynb)

## 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 install 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](https://github.com/kirbs-/hide_code/wiki/Lab%20Usage) for details and limitations.
* Added Binder demo [](https://mybinder.org/v2/gh/kirbs-/hide_code/master?filepath=demo.ipynb)
* 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](https://github.com/kirbs-/hide_code/wiki).## Requirements
* Jupyter notebook >6.0
* Jupyter nbconvert >6.x
* pdfkit & [wkhtmltopdf](http://wkhtmltopdf.org/)
* Python 3.7+