Skip to main content

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


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)

Uploaded Source

Built Distribution

gitaddnb-0.1.0rc1-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page