Filtering out extraneous info in jupyterlab git tracking

I am hoping to use git to track my jupyter lab code. When I do that, git stores a bunch of extraneous data like how many times the cell was run and a bunch of other meta dta making the git file unreadable:

Is there a way to clean that up so that it just shows the code (and possibly the output)? There is only one line of code: string = "here is some new code"

I found something that purports to do that for Python here but I can’t find it for Julia. That is supposedly “inspired” by this
Thanks

I understand you. I recommend to use https://github.com/mwouts/jupytext that allow you to sync the notebook with a text file, in that way you can add the text file to the repository, avoiding that problem. It work with any Jupyter Notebook and support several languages, including Julia.

4 Likes