【发布时间】:2021-08-01 19:27:33
【问题描述】:
我有 VS 代码 1.56,我正在尝试同时运行 python 和 julia。 我在交互式窗口中运行选定的 python 代码时遇到了一些问题。 当我按下键绑定(shift + enter)时,我没有任何动作。 我试图“切换键盘快捷键故障排除”,我得到以下日志
[2021-05-11 14:08:54.305] [renderer1] [info] [KeybindingService]: \ From 13 keybinding entries, matched jupyter.execSelectionInteractive, when: editorTextFocus && jupyter.ownsSelection && !findInputFocussed && !notebookEditorFocused && !replaceInputFocussed && editorLangId == 'python', source: user extension ms-toolsai.jupyter.
[2021-05-11 14:08:54.308] [renderer1] [error] spawn python ENOENT: Error: spawn python ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
我读了here 来标记“Jupyter:将选择发送到交互式窗口”,但仍然不起作用。
你有什么建议吗?
【问题讨论】:
-
看起来它无法生成
python进程。python在路径 / 中是否可以从您的工作目录访问? -
是的,如果我在命令行中编写 python,我会在 REPL 中输入
标签: python-3.x vscode-settings key-bindings