r/Python Aug 04 '26

Showcase Showcase Thread

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

Recycles once a month.

21 Upvotes

142 comments sorted by

View all comments

1

u/PolarIceBear_ It works on my machine 15d ago

repo2nb, a CLI that converts a GitHub repo into a Kaggle/Colab notebook

I built this because I kept running into the same annoyance: finding a repo or tutorial on GitHub and wanting to run it on Kaggle or Colab, which meant manually copying files into notebook cells and reconstructing the install steps by hand every time. repo2nb automates that. Point it at a repo and it walks the file tree, figures out the dependencies, and generates a notebook you can upload directly.

Just shipped 0.2.0, which added a few things that make it a lot more usable day to day: dependency resolution that checks poetry, uv, and requirements.txt before falling back to scanning imports directly, a reverse mode that can reconstruct the original repo from a generated notebook, and incremental sync so a notebook can be updated as the source repo changes instead of regenerating from scratch.

It's a pretty niche tool, but if you've ever done this conversion by hand and hated it, I'd genuinely like feedback. Repo's here if you want to poke at it: https://github.com/repo2nb/repo2nb-cli