-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Git Hook to remove outputs containing audio #21
Comments
Hi, Is this issue pointing to having an option to remove outputs via a function call, or is it about adding something like nbdev or nbstripout in the library? If I don't make any sense, please correct me. |
The issue is that he nbdev_clean command doesn't strip the outputs. If for example you have a notebook that has a 1 hour audio preview in it then in the ipynb file, you will have that base64 encoded data in the file. This leads to incompatibility with reviewnb etc. |
That's exactly the problem. I'd say leave this issue to me to sort out but thanks for taking an interest in it. |
@mogwai Is this necessary now that the notebooks are small ? |
Well the problem is that because the notebooks were large before, the git history is tainted with the data in order to make sure that you can checkout previous commits. This means that a git clone will still take a a lot of time. The whole point of this hook is to prevent contributors from accidentally adding audio data into the notebooks as we essentially can't remove it easily once its tracked. I'm happy to drop the issue for now but I think it would be useful to explore creating this at some point in the future. What are you're thought @scart97? |
To reduce the repo size and make working with reviewnb better
The text was updated successfully, but these errors were encountered: