VS Code gets very laggy every time I call numpy

61 Views Asked by At

I have only recently faced this issue. Before this I have been using the numpy library extensively and never faced this problem. But now, for some reason, every time I want to type any command that has np. with it, it always lags really bad. It would freeze my PC for 1-2 seconds before spitting all the words I typed. Is this some kind of update issue or? I am using Python 3.11.5 with Anaconda.

An example of when this happens:

xi = np.linspace(0,10,101)

Which should work perfectly fine, but it would lag on my PC by the time I type the "."

Here's a GIF showcasing my issue: np issue GIF

  • Tried reloading the environment, didn't fix it
  • Tried reimporting the library, didn't fix it too
0

There are 0 best solutions below