Python in VSCode - extremely slow (how to fix?)

When I'm writing JS or TS for non-web tasks, eg toy scripts I make for fun, I use VSCode TypeScript to run type checking and Quokka to execute my scripts on-demand. Usually I can write a fairly big (>1000 lines) file before I notice any slow down. File save is instant, type checking is instant, and execution is no longer than the expected runtime of the program. When I'm writing Python, I use Microsoft's python extension to run type checking, and the terminal (bash) to execute the scripts. I use a virtual environment because good practice & I don't want to nuke the py3.10 internal to my OS. I can't get more than a couple dozen lines in before it's slow. File save takes so long that I can run my script several times before VSCode actually writes the changes to disc, type checking is all but useless as ctrl+space or hovering takes minutes to load anything, and execution is painfully slow (this may just be python's interpreter taking a while to spin up). My laptop isn't bad, I use NVMe storage (samsung evo 970), I have 16GB DDR4 RAM, and an Intel i5-10210U 4 core 4.2GHz boost CPU. It can run lots of runtime-expensive JavaScript very quickly, but for some reason python in VSCode is a slow and chunky mess to the point that I cannot use it. Does anyone have any ideas why this might be? I'd really like to be able to use python in VSCode, mainly becuase I can't be bothered with JavaScript charting libraries and MatPlotLib.PyPlot is so simple. Currently it's faster for me to process and export the data in JS, then paste it into a LaTeX document, and use that to render the chart.
1 Reply
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server