Show HN: Dietnb – Prevent Jupyter notebooks from bloating with Base64 images

Wait 5 sec.

Hey HN!I've been frustrated by huge Jupyter notebooks bloated with Base64-encoded images, making them sluggish in VSCode and causing frequent connection drops when working remotely.To fix this, I created "dietnb", a tiny Python library that automatically saves plots as external image files instead of embedding them as Base64. Images then appear neatly as Markdown-linked images (`![]()`), drastically shrinking notebook size.Currently supports VSCode and standard Jupyter environments (Colab support appears tricky).Quick start:```bashpip install dietnbdietnb install```Then simply plot anything as usual!Smaller notebooks should also help workflows using AI or diff tools.GitHub → Feedback and suggestions are welcome!Comments URL: https://news.ycombinator.com/item?id=44196196Points: 1# Comments: 0