I’m trying to switch from Spyder to VScode in order to integrate git into my workflow. However I’m running into some (I think related?) issues that I’d love some help with.
- Interactive mode and the variable explorer can take up to 20 seconds to define a=5
- the variable explorer really struggles to show me a dataframe with more than 100k rows.
- the variable explorer can’t open pandas index objects
- the variable explorer does not show the data as its stored, example: my EAN18 code’s had their last 2 digits transformed into a 0. It took me 3 hours to figure out that was what’s happening.
info:
I’m using a conda environment
- python 3.9.12
- vscode 1.70
- vscode python plugin v2022.12.1
I told VSCode to use my anaconda environment through:
ctrl+shift+p –> python: select interpreter –> choosing my anaconda environment from the list
I cannot imagine anyone getting anything done with issues like these, so I must be doing something wrong. What could be a good place to start troubleshooting one or multiple of my issues?
3
Answers
The problem is related to my personal hardware and other aspects, posting this to try and accept this answer so I can delete this post.
It’s definitly not usual, that there are these delays.
Although it is quite hard to tell what the problem is, because there are two many "variables" at play (Your PC-Setup, installed Software, …).
But there are some things you could try as a solution.
These are the things you could try to fix your VS-Code setup.
On a further note, on personal experience I’d recommand using the PyCharm IDE.
It is entirly free too (the community version at least) and has an even better GIT integration compared to the VS-Code’s one.
If you can’t fix your mentioned issues this might be a good option to choose as an alternative.
Hope this helps 🙂
This does not seem to be a common problem.
I can give some suggestion:
Add the following code to your
setting.json
:"search.followSymlinks": false,
Set high performance mode for vscode in graphics card settings
Power settings enable high performance