Skip to content

AnH0ang/nbenumerate

Repository files navigation

nbenumerate

PyPI version Python version Code Quality Test Release Pipeline License: MIT pre-commit

Automatically enumerate the markdown titles in jupyter notebooks.

Screenshot

Installing nbenumerate

Install nbenumerate with pip:

pip install nbenumerate

Using nbenumerate

To run on one or more notebooks:

nbenumerate path/to/notebook.ipynb

Precommit Hook

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