django - How to persist ipython notebook without persisting output? -
i have ipython notebook invoke through django's
shell_plus --notebook command.
i save notebook, meaning code cells, without saving output follows each code cell.
i use notebook analytics , reporting on sensitive patient data covered hipaa , i'd able persist notebook in git without exposing sensitive patient data in git repository.
reposting answer:
you can set git hook strip output notebook whenever commit: gist.github.com/minrk/6176788
a bit more advanced, less tested, tool wrote called nbexplode, splits notebook multiple pieces , recombines them. advantage of keep output in local copy , commit code. if simpler approach works you, i'd go that.
Comments
Post a Comment