nb-clean cleans Jupyter notebooks of cell execution counts, metadata, outputs, and (optionally) empty cells, preparing them for committing to version control. It provides both a Git filter and pre-commit hook to automatically clean notebooks before they're staged, and can also be used with other version control systems, as a command line tool, and as a Python library. It can determine if a notebook is clean or not, which can be used as a check in your continuous integration pipelines. nb-clean can also be used as a pre-commit hook. You may prefer this to the Git filter if your project already uses the pre-commit framework. Note that the Git filter and pre-commit hook work differently, with different effects on your working directory. The pre-commit hook operates on the notebook on disk, cleaning the copy in your working directory. The Git filter cleans notebooks as they are added to the index, leaving the copy in your working directory dirty.

Features

  • Add a filter to an existing Git repository to automatically clean notebooks when they're staged
  • Cleaning (pre-commit hook)
  • Preserving all nbformat metadata
  • nb-clean is distributed under the terms of the ISC license
  • Documentation available
  • Examples available

Project Samples

Project Activity

See All Activity >

License

ISC License

Follow nb-clean

nb-clean Web Site

You Might Also Like
ManageEngine Endpoint Central for IT Professionals Icon
ManageEngine Endpoint Central for IT Professionals

A one-stop Unified Endpoint Management (UEM) solution

ManageEngine's Endpoint Central is a Unified Endpoint Management Solution, that takes care of enterprise mobility management (including all features of mobile application management and mobile device management), as well as client management for a diversified range of endpoints - mobile devices, laptops, computers, tablets, server machines etc. With ManageEngine Endpoint Central, users can automate their regular desktop management routines like distributing software, installing patches, managing IT assets, imaging and deploying OS, and more.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of nb-clean!

Additional Project Details

Programming Language

Python

Related Categories

Python Data Visualization Software

Registered

2024-01-08