Hacker News new | ask | show | jobs
by ihnorton 1475 days ago
> I'm just relying on sending blocks of code to the interactive Python terminal. > [...] > the latter requires .ipynb files which maybe you don't want to check into git.

I use `#%%` code blocks in the interactive window for this purpose: https://code.visualstudio.com/docs/python/jupyter-support-py

This allows a normal editor workflow, interactive execution, and linear history of executed cells. But the code blocks can still be executed top-to-bottom and exported as a clean notebook for sharing purposes.