Skip to main content

Utility to check the validity of jupyter notebook files

Reason this release was yanked:

empty wheel

Project description

Notebook format validation utility

This project is a simple utility wrapper around nbformat to check the validity of notebook files. The utility will return a non zero return code if any of the notebooks has validations errors. This may be useful in pre-commit scripts to detect problematic notebooks.

Usage

Usage: nbcheck [OPTIONS] [PATH]...

  Check notebooks for validation errors

Options:
  -r, --recurse   Recurse to sub directories
  -x, --executed  Fail notebooks with unexecuted code cells
  -v, --verbose   Print validation errors
  --help          Show this message and exit.

The --executed option additionally fails notebooks where any non-empty code cell has no execution count — catching notebooks committed with cleared or never-run outputs. Useful when committed outputs are the published artifact, e.g. notebooks rendered to a docs site without execution.

Example

> nbcheck extras
pass extras/valid-notebook.ipynb
fail extras/broken-notebook.ipynb
fail extras/nbformat-read.ipynb

Installation

You can install the latest version of this module with pip or pipx

pipx install git+ssh://git@github.com/furechan/nbcheck.git

Related Resources

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

nbcheck-0.0.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nbcheck-0.0.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file nbcheck-0.0.3.tar.gz.

File metadata

  • Download URL: nbcheck-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for nbcheck-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ccd3f29c3056c566329890d4679f7bfbc67bb4383d1f6ef7be44d68f57fcb981
MD5 13d80896d9763cb429166221684477ac
BLAKE2b-256 19bccd1ac988f0b86a7cf1de27c04bd61cf33d61145c7f2dc06a825c0f291591

See more details on using hashes here.

File details

Details for the file nbcheck-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: nbcheck-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for nbcheck-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f805962019a8e1bf26204ad3df32450413b8ea956d4910fa5d8429bc6723818e
MD5 f0828eca35f0b38335121f7654810473
BLAKE2b-256 4a4a7b6b1ce74d5570da16578fe0c65170488d5df39c247245289e1ddc48ea8f

See more details on using hashes here.

Supported by

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