s4b7r / adventofcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Ipython Notebooks in Git

Remeber to put the following filter into the repo's config:

[filter "nbstrip_full"]
        clean = "\"jq\" --indent 1 \
                '(.cells[] | select(has(\"outputs\")) | .outputs) = []  \
                | (.cells[] | select(has(\"execution_count\")) | .execution_count) = null  \
                | .metadata = {\"language_info\": {\"name\": \"python\", \"pygments_lexer\": \"ipython3\"}} \
                | .cells[].metadata = {} \
                '"
        smudge = cat
        required = true

And also

*.ipynb filter=nbstrip_full

into .gitattributes.

Install jq somewhere into PATH, if necessary.

About


Languages

Language:Jupyter Notebook 100.0%