IAMconsortium / concordia

Apache License 2.0
0 stars 3 forks source link

Switch to jupytext for jupyter notebooks #14

Closed coroa closed 1 year ago

coroa commented 1 year ago

ie. we check in notebooks converted to a py:percent format by jupytext and let jupytext sync it back to the notebooks we have in our worktree's (but git-ignored)

coroa commented 1 year ago

The last commit demonstrates how a PR would then look for a notebook.

If jupytext is installed (make sure to update your conda env), the jupytext extension in jupyter notebook or jupyter lab updates the notebook version when it finds the py:percent has been updated and writes both versions on save.

gidden commented 1 year ago

Thanks @coroa - I'll give this a spin tomorrow and shout if I run into any issues