Re:Show HN: Ansible Kernel – Run Ansible Tasks and Plays wit...
by tejtm on Wednesday July 18, 2018 @03:08PM
(#17561222)
Until there is a meaningful `git diff` for jupyter notebooks I can't see them being a step in the right direction for anything but transient experiments (and of course what Jypyter is great at; communication, documentation, low barriers etc.)
[ Parent
| on HN ]
Re:Show HN: Ansible Kernel – Run Ansible Tasks and Plays wit...
by massaman_yams on Wednesday July 18, 2018 @03:19PM
(#17561311)
This is effectively a solved problem, but it does require some tooling.
Pre-commit hooks can strip things like execution count and/or outputs from the notebook: https://gist.github.com/minrk/6176788
Re:Show HN: Ansible Kernel – Run Ansible Tasks and Plays wit...
by makmanalp on Thursday July 19, 2018 @12:48AM
(#17563972)
See also: nbdime to diff / merge notebooks https://github.com/jupyter/nbdime
Re:Show HN: Ansible Kernel – Run Ansible Tasks and Plays wit...
by tejtm on Wednesday July 18, 2018 @05:00PM
(#17562021)
Thanks will give this a try
Re:Show HN: Ansible Kernel – Run Ansible Tasks and Plays wit...
by massaman_yams on Wednesday July 18, 2018 @08:39PM
(#17563206)
caveat: I haven't tested this particular one, it was just the first thing I found in a quick search.
This post has more detail on a faster approach using jq: http://timstaley.co.uk/posts/making-git-and-jupyter-notebook...
Re:Show HN: Ansible Kernel – Run Ansible Tasks and Plays wit...
by PurpleRamen on Thursday July 19, 2018 @05:03AM
(#17564797)
Something I always wondered about: why are Jupyter Notebooks JSON-Files and not directories where each cell and result has a coresponding single file? Would also make managing attatchments and versionscontrol per notebook quite easy.