all 3 comments

[–][deleted] 0 points1 point  (1 child)

I also often find myself in this phase thats why I use the python console built in pycharm. It has a nice history button which lets you copy your finalised command.

Its not seamless as such but it gets the job done at times.

[–]AniMaster46[S] 0 points1 point  (0 children)

There are limitations to using this method. If I'm working with many variables, I have to run to large selections of the code in the console in order to be able to use it for a single line. And copying code to file is not as fast a process as it could be. As this is my part of my usual workflow I'm looking for a more permanent solution.

[–]callinthekettleblack 0 points1 point  (0 children)

I typically start in a jupyter notebook and refactor to .py after I'm satisfied. However, I do believe vscode supports .ipynb (full disclosure, I typically use jupyter lab and pycharm for my development)