# Filtering out extraneous info in jupyterlab git tracking

**URL:** https://discourse.julialang.org/t/filtering-out-extraneous-info-in-jupyterlab-git-tracking/45460
**Category:** New to Julia
**Created:** [August 24, 2020, 4:02pm UTC](https://discourse.julialang.org/t/filtering-out-extraneous-info-in-jupyterlab-git-tracking/45460 "2020-08-24T16:02:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![samerb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samerb/32/9242_2.png) [@samerb](https://discourse.julialang.org/u/samerb)
#### Post date: [August 24, 2020, 4:02pm UTC](https://discourse.julialang.org/t/filtering-out-extraneous-info-in-jupyterlab-git-tracking/45460/1 "2020-08-24T16:02:05Z")

</div>

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:

 ![Screen Shot 2020-08-24 at 10.58.57 AM](https://global.discourse-cdn.com/julialang/original/3X/4/b/4b5c01a47fa55200b7be4b5875be1a23ac20922e.png)

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](https://gist.github.com/pbugnion/ea2797393033b54674af) but I can’t find it for Julia. That is supposedly “inspired” by [this](https://stackoverflow.com/questions/18734739/using-ipython-notebooks-under-version-control/20844506#20844506)  
Thanks

---

<div class="post-metadata">

### Author: ![dmolina](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dmolina/32/5246_2.png) [@dmolina](https://discourse.julialang.org/u/dmolina)
#### Post date: [August 24, 2020, 4:11pm UTC](https://discourse.julialang.org/t/filtering-out-extraneous-info-in-jupyterlab-git-tracking/45460/2 "2020-08-24T16:11:58Z")

</div>

I understand you. I recommend to use [https://github.com/mwouts/jupytext](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.
