kynan / nbstripout

strip output from Jupyter and IPython notebooks
Other
1.19k stars 94 forks source link

Specifying Python executable path in `nbstripout --install` #181

Closed nobodyinperson closed 1 year ago

nobodyinperson commented 1 year ago

It would be helpful if there was a way to specify the path nbstripout --install puts into e.g. .git/config. This would enable to specify only python or python3, not the full path, which can differ between runtimes, e.g. when using Apptainer/Singularity or Docker containers (/usr/bin/python vs /usr/local/bin/python) occasionally as well as the native Python on the same repo.