12 ms·
Built a live coding library for python that allows me to reload code I edited while it was executing. It has repl and debugger support and it can be run even fo
by kilon 3y ago
Built a live coding library for python that allows me to reload code I edited while it was executing. It has repl and debugger support and it can be run even for embedded python. It's pretty granular so it can reload modules or even individual objects. Unlike the existing module reload python function it can change object references to the updated code and delete old objects and their references from memory. This way in the next call only the latest code is executed. I built something similar for C code too.
- schemescape 3y agoI was just looking for something like this. Have you shared either of these publicly?
- kilon 3y agoHere you go https://pypi.org/project/pylivecoding/ https://pypi.org/project/pylivecoding/