简体   繁体   English

VSCode Python 交互窗口,变量资源管理器

[英]VSCode Python Interactive Window, variable explorer

I want a Spyder-like Console in VSCode for python, so I run code in Interactive Window and click vairables as other answers said.我想在 VSCode 中为 python 提供一个类似 Spyder 的控制台,所以我在交互式窗口中运行代码并单击其他答案所说的变量。 However, instead of editor area, the jupyter variables shows in the panel I can't move to the upper right.但是,jupyter 变量显示在面板中,而不是编辑器区域,我无法移动到右上角。

So can I move variables explorer to the upper right of the editor area?那么我可以将变量资源管理器移动到编辑器区域的右上角吗? Any help will be appreciate.任何帮助将不胜感激。

----- 2021.10.21 UPDATE ----- ----- 2021.10.21 更新 -----

So now the new problem is Variables explorer for 2021.10 Python extension lies in panel instead of editor area.所以现在的新问题是 2021.10 Python 扩展的变量资源管理器位于面板而不是编辑器区域。 Here is the link from VSCode docs.这是来自 VSCode 文档的链接。 (Can't show pics due to low reputations) (由于声誉低,无法显示图片)

official guide 官方指南


The Editor layout I expected is like Pycharm and Spyder style, which I got from an earlier version of Python extensions(version 2020.10) Here is the link from an individual guide我期望的编辑器布局类似于 Pycharm 和 Spyder 样式,这是我从早期版本的 Python 扩展(版本 2020.10)中获得的 这是来自个人指南的链接

Expected 预期的


So can the latest version of Python Extension do that?那么最新版本的 Python Extension 可以做到吗?

Right-click on the Terminal tab and select Move Panel Right .右键单击“ Terminal tab并选择“ Move Panel Right

在此处输入图片说明

But there are some problems, after you do that, you need to reload the VSCode, otherwise, it can not display the variables.但是有一些问题,这样做之后,需要重新加载VSCode,否则无法显示变量。

我今天遇到了同样的问题,并且一直在寻找将面板移动到 Spyder 或 Rstudio 之类的位置的方法,但正如您所说,新的扩展使其成为不可能。

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

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