简体   繁体   English

为什么 vscode 在 python 控制台中执行我的选择如此缓慢?

[英]why does vscode execute my selection so slowly in python console?

This has been annoying me for weeks, it's usually not this bad but it's honestly like a snail at this point.这让我烦恼了好几个星期,通常情况不会那么糟糕,但老实说,在这一点上它就像一只蜗牛。

I can either run a specific line, or select some code and run the selection which sends that selection to the python console.我可以运行一个特定的行,或者 select 一些代码并运行将选择发送到 python 控制台的选择。

Why does this happen so slowly?为什么这会发生得如此缓慢? See the gif...看动图...

为什么

Any thoughts on how I could fix this?关于如何解决这个问题的任何想法?

Two Solutions:两种解决方案:

1) Well first one is that you can try by changing the default terminal Powershell to Command Prompt 1)第一个是您可以尝试将默认终端Powershell更改为Command Prompt

Here are the two guide for you on how to change the terminal这是有关如何更改终端的两个指南

Guide 1 指南 1

Guide 2 指南 2


2) Start VSCode with the --ignore-gpu-blacklist flag and see if it solve any performance issues 2) 使用--ignore-gpu-blacklist标志启动VSCode ,看看它是否解决了任何性能问题

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

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