Skip to main content

Unit tests PyPI - Python Version PyPI PyPI - Downloads GitHub contributors PyPI - License

nb_prep

nb_prep automates preparing jupyter notebooks for sharing and storage.

You can use the nb_prep CLI to:

  • Convert jupyter notebooks to HTML (using nbconvert) and:
    • add a date prefix to the filename.
    • add a git hash suffix to the filename.
    • move the HTML file to a configured output directory
  • Strip jupyter notebooks of all cell outputs (using nbstripout)

You can also configure nb_prep once as a pre- and post-commit hook and have notebook output automatically prepared every time you git commit.

nb_prep is a useful automation tool when you have a lot of analysis notebooks in git that you want to share with stakeholders. If your main interest is preparing clean notebooks for storing in git commits, consider using jupytext instead.

Installation

pip install nb_prep

Documentation

See allianz-direct.github.io/nb_prep.

Metadata

Release files for nb-prep 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nb-prep 1.0.2
File Size Uploaded
nb_prep-1.0.2.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nb-prep 1.0.2
File Interpreter ABI Platform
nb_prep-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 21.8 kB

Release files / nb_prep-1.0.2.tar.gz

Download URL nb_prep-1.0.2.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
538f555e85fd978de3acf896da9191a3021659e89aa7749e24077dfbd6aff0ca
BLAKE2b-256 checksum
How to use checksums
a55bd911f5d61d0b1a2449bf631cb387df6c52d27f5c4ca0be99b5b745107b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release files / nb_prep-1.0.2-py3-none-any.whl

Download URL nb_prep-1.0.2-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67d6dfc8d34e88eb74f344671e9e0dae68cb4941f5bfcbb3443f81f1d276856b
BLAKE2b-256 checksum
How to use checksums
0d1fba03ce37d9b3b00024ad50b90c67fc3919b66acc9b7b31e61ec7651f9fd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page