Skip to content

Download a non-executed notebook #1829

Answered by Charlesnorris509
fmaussion asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @fmaussion There are a few ways to strip the output of a Jupyther Notebook using Github. First of all you could use Pre-commit Hooks to Strip the output.
This can be archived using the nbstripout library. You'll find this library and it;s documentation at the following link https://pypi.org/project/nbstripout/0.2.3/
and you can install it using the following command
pip install nbstripout
Secondly you can manually strip the output befor building the File. You can use the following commands to complete this task
nbstripout .ipynb
jupyter-book build
Finally if you want to automate this you could use or build a custom script created for this purpose. Here's a link a script previously cre…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@fmaussion
Comment options

Answer selected by fmaussion
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants