在提交前使用 nbstripout 从笔记本中去除噪声输出
Keep notebook diffs reviewable by removing execution output and excess metadata before notebooks land in Git history.
Prerequisites
Python environment, nbstripout, Jupyter or IPython notebook files, and optional Git filter or pre-commit integration
Installation
Use the upstream install or setup path that matches your environment:
- pip install nbstripout==0.3.10
- pip install --upgrade nbstripout
- conda install -c conda-forge nbstripout
Requirements and caveats from upstream:
-
-
- ## Python 3 only
Basic usage or getting-started notes:
- package index PyPI as follows:
- distribution, install nbstripout via the conda
- package manager from conda-forge:
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/kynan/nbstripout/HEAD/README.md
Documentation
- https://github.com/1991513ccie-png/skills