Use IPython REPL in VS Code

前端 未结 6 1435
天涯浪人
天涯浪人 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:00

    You could also set the "python.pythonPath" in your settings.json as follows:

    {
      "python.pythonPath": "~/miniconda3/bin/ipython3",
      "python.dataScience.sendSelectionToInteractiveWindow": false
    }
    

    or

    {
      "python.pythonPath": "~/miniconda3/envs//bin/ipython3",
      "python.dataScience.sendSelectionToInteractiveWindow": false
    }
    

    shift+enter will then trigger ipython and send the line to the terminal.

提交回复
热议问题