Use IPython REPL in VS Code

前端 未结 6 1434
天涯浪人
天涯浪人 2020-12-29 04:15

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

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-29 05:05

    I start IPython from inside the standard Python REPL that's spawned by Shift-Enter with

    import IPython
    IPython.embed()
    

    See IPython docs.

提交回复
热议问题