如何禁用 Jupyter 作为 VS Code 的默认 Python 执行器? [英] How can i disable Jupyter as VS Code's default Python executor?

查看:27
本文介绍了如何禁用 Jupyter 作为 VS Code 的默认 Python 执行器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jupyter 内核加载缓慢,而且我不需要 VS Code 中的代码单元(它们的格式很差,而且很尴尬).有什么方法可以禁用 Jupyter 内核作为执行器,然后在附加的 VS Code 终端中返回使用 ipython 吗?

Jupyter kernel is slow to load and I don't need code cells in VS Code (they're poorly formatted anyways, and just awkward). Is there any way to disable Jupyter kernel as the executor and just go back to using ipython in the attached VS Code terminal?

推荐答案

这就是您所需要的:

"python.dataScience.sendSelectionToInteractiveWindow": false

您可以直接在 settings.json 文件中或通过设置选项卡进行设置:Python > 数据科学:将选择发送到交互式窗口.

You can make it directly on settings.json file or through settings tab: Python > Data Science: Send Selection To Interactive Window.

您可以在用户或工作区级别进行设置.

You can make it at user or at workspace level.

这篇关于如何禁用 Jupyter 作为 VS Code 的默认 Python 执行器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆