Re:JupyterLab 4.0
by fluidcruft on Wednesday June 14, 2023 @08:29AM
(#36324872)
I use a pre-commit setup that strips and formats notebooks. IIRC I use a bunch of the nbqa hooks (to also apply black, isort, ruff, etc) but I'd have to check if I moved to different versions for some reason. My workflow uses papermill so the notebooks I store in git are essentially "parameterized templates that get instantiated with data".
https://pre-commit.com/
https://github.com/nbQA-dev/nbQA
https://papermill.readthedocs.io/en/latest/