Using the Python extension of Visual Studio Code, I can select some code, right-click it, and select \"Run Selection/Line in Python Terminal\" (alternatively, I can hit Shif
I start IPython from inside the standard Python REPL that's spawned by Shift-Enter with
import IPython IPython.embed()
See IPython docs.