Skip to content

Conversation

@dfreniche
Copy link
Collaborator

@dfreniche dfreniche commented Nov 28, 2025

This PR adds a new GitHub Action Remove Notebook Outputs

This workflow removes the outputs from Jupyter notebooks (.ipynb files) whenever changes are pushed to the repository. When we run a Notebook locally it generates output that we don't want to commit. To clear the output we can do it manually, one by one before pushing to the repo, but we can forget and push some changes that contain output results.

This action will remove all output from all the notebooks, adding a commit to our branch with the changes and a commit message "Clear notebook outputs".

The 1st time we run this script it will add an id to some notebooks. That is already included in this PR

@dfreniche dfreniche merged commit bb1ed59 into main Dec 3, 2025
3 checks passed
@dfreniche dfreniche deleted the action-remove-output-notebooks branch December 3, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants