You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lot of users want to version control only the source (markdown + code cells) but don't wish to commit output into their git repository. They currently do this via nbstripout or with "Clear All Outputs" in the Jupyter UI.
The problem is, sometimes you might want to keep an output for some notebooks or even for some cells in the Notebook. Then both the earlier options are kind of icky. Also, people sometimes just tend to forget to hit "Clear All Outputs" before committing.
Solution
We can give users ability to clean output at merge time. They can view the entire diff and select which outputs they want to keep (if any) and once the review is complete and user hits merge we can remove the output and push a new commit with the stripped version.
Moreover, we can let user configure the repo to always strip all output at every merge so no more forgetting to clean output. If you need to overwrite the stripping for a few select cells, just mark those in the merge UI and we'll keep those outputs and clean everything else.
Benefits
Once configured, it just strips output every time user merge the changes.
It's easy to overwrite the cleaning rule for a select set of outputs in a given merge. Simply select the outputs you wish to keep and we'll deleted the rest.
Feel free to upvote/downvote the issue indicating whether you think this is useful feature or not. I also welcome additional questions/comments/discussion on the issue.
The text was updated successfully, but these errors were encountered:
Problem
Lot of users want to version control only the source (markdown + code cells) but don't wish to commit output into their git repository. They currently do this via nbstripout or with "Clear All Outputs" in the Jupyter UI.
The problem is, sometimes you might want to keep an output for some notebooks or even for some cells in the Notebook. Then both the earlier options are kind of icky. Also, people sometimes just tend to forget to hit "Clear All Outputs" before committing.
Solution
We can give users ability to clean output at merge time. They can view the entire diff and select which outputs they want to keep (if any) and once the review is complete and user hits merge we can remove the output and push a new commit with the stripped version.
Moreover, we can let user configure the repo to always strip all output at every merge so no more forgetting to clean output. If you need to overwrite the stripping for a few select cells, just mark those in the merge UI and we'll keep those outputs and clean everything else.
Benefits
Feel free to upvote/downvote the issue indicating whether you think this is useful feature or not. I also welcome additional questions/comments/discussion on the issue.
The text was updated successfully, but these errors were encountered: