简体   繁体   English

如何在VSCode python交互中恢复到较少的“Jupiter-y”命令?

[英]How to revert to a less "Jupiter-y" command in VSCode python interactive?

I am extensively using Python on VSCode and the interactive mode.我在 VSCode 和交互模式上广泛使用 Python。 However VSCode keeps changing the interactive interface (I've already asked a question here ) and it is getting difficult to get a consistent workflow.然而 VSCode 不断改变交互界面(我已经在这里问过一个问题),并且很难获得一致的工作流程。

What I liked about the "old" behaviour of VS code's Python interactive was command line that allowed multi-lines and history scrolling using the up/down arrows.我喜欢 VS 代码的 Python 交互的“旧”行为是命令行,它允许使用向上/向下箭头进行多行和历史滚动。 I am personally not a big fan of the more "notebook" style of coding.我个人不是更“笔记本”编码风格的忠实粉丝。

Is there a way to get something like what Molly Wang suggested here using up-to-date options?有没有办法使用最新选项来获得类似于 Molly Wang 在这里建议的内容?

I am using:我在用:

Version: 1.68.1
Commit: 30d9c6cd9483b2cc586687151bcbcd635f373630
Date: 2022-06-14T12:52:13.188Z
Electron: 17.4.7
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Darwin x64 21.2.0

My current command looks like this:我当前的命令如下所示:

在此处输入图像描述

Thanks!谢谢!

Sorry but there is no way to go back to the old style.对不起,但没有办法回到旧的风格。 Your best bet is to log style change suggestions on VS code to change it.最好的办法是在 VS 代码上记录样式更改建议以进行更改。 The jupyter extension doesn't actually provide the UI for this anymore. jupyter 扩展实际上不再为此提供 UI。 It is a core piece of VS code now.它现在是 VS 代码的核心部分。

Up/Down should still work in the input box though.不过, Up/Down应该仍然可以在输入框中工作。 It scrolls through the entries that have been typed in the input box.它滚动浏览已在输入框中键入的条目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM