miranov25 / fastMCKalman

Fast simulation and performance parameterization - primary for ALICE3 and DUNE
MIT License
0 stars 1 forks source link

Support for notebook - automatic cleanup + support for the large file - https://git-lfs.github.com/ #30

Open miranov25 opened 1 year ago

miranov25 commented 1 year ago

Jupyter as an precommit: https://zhauniarovich.com/post/2020/2020-06-clearing-jupyter-output/

Steps:

miranov25 commented 1 year ago

pip install pre-commit has to be added to the requirement

it is not done by default

miranov25 commented 1 year ago

Using filters not needs anything - https://gist.github.com/33eyes/431e3d432f73371509d176d0dfb95b6e

git config --global filter.strip-notebook-output.clean 'jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR'

miranov25 commented 1 year ago

git precommit hook did not work as it used hardwired path the the precommit software to be removed

miranov25 commented 1 year ago

filter writes it to the $HOME/.gitconfig [filter "strip-notebook-output"] clean = jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR

miranov25 commented 1 year ago

lsf in combination with filter makes files impossible to remove

miranov25 commented 1 year ago

To fix the problem I had to git clean -fdx