No project description provided
Project description
gitaddnb
If you want to add a Jupyter Notebook to the git stage:
- ensuring all code cells ran consecutively
- without outputs
- without execution order
- leave the cell outputs on disk as is
Pre-Commit
You can use this repository as a pre-commit hook:
repos:
- repo: https://github.com/pcjedi/gitaddnb
rev: v0.1.0
hooks:
- id: gitaddnb
On the first Commit Attempt, this hook will fail due to changing the content of the staged Notebooks. The second try should then go through.
CLI
Installation
pipx install gitaddnb
Usage
gitaddnb notebook1.ipynb notebook2.ipynb
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gitaddnb-0.1.0rc1.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for gitaddnb-0.1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c689d584742a6d346a05846d3b7b8d1f0c8d7c034bb10c94cd73b719db9ee02c |
|
MD5 | 16120683824e9ccf4af555838a5b4fda |
|
BLAKE2b-256 | e76548452e61ebd19b00708777c57d3caea6fad1f0b23dd9e2a5a8b049ebc812 |