I created a tool that keeps your code snippets up to date in Readme:) it can be used either as 🪝 pre-commit hook or as a Github action, and it supports whole scripts, sections of scripts and 🐍 Python objects. It’s extremely easy to use, feel free to check it out! https://github.com/kvankova/code-embedder