Automatically enumerate the markdown titles in jupyter notebooks.
Install nbenumerate with pip:
pip install nbenumerate
To run on one or more notebooks:
nbenumerate path/to/notebook.ipynb
Add this section to your pre-commit-config.yaml
so that the nbenumerate
script is executed before each commit with pre-commit.
- repo: https://github.com/AnH0ang/nbenumerate
rev: 0.2.1
hooks:
- id: nbenumerate
name: nbenumerate