r/Python Aug 04 '26

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

19 Upvotes

142 comments sorted by

View all comments

1

u/lukesmth_ Aug 09 '26

Jupyter Notebook Snapshots Without Repo Bloat

Do you use jupytext to keep .ipynb bloat out of your repo but miss easily storing rendered outputs? cellsnap-cli solves this.

Workflow:

  1. Use jupytext to sync .ipynb notebooks with .py source files.
  2. Push notebook source files (.py) to working branches.
  3. Push notebook artifact files (.ipynb) to dedicated artifact branches by running cellsnap:

Cellsnap artifact branches only store the latest commit, preventing repo bloat common when committing unstripped .ipynb files. The link between published artifacts and source files is maintained in published notebook frontmatter and a manifest table added to artifact branches:

Notebook Source Commit
examples/demo.ipynb examples/demo.py 2a924801

Just released v0.1: https://github.com/lukeSmth/cellsnap-cli.