All Questions
Tagged with visual-studio-code python
8,548 questions
0
votes
0
answers
92
views
Running Python in VS Code, when writing to terminal it stops
I am using Python (3.11.4) and VS Code in a remote Windows session (Microsoft 2019 Datacenter). While in the editor, I run code line by line with Shift + Enter.
Lately, this has been slowing down, and ...
Advice
0
votes
0
replies
13
views
Found solution for an annoying problem with "Visual Studio Code" not able to detect ipynb kernel
Have you wondering why your friend's pc/laptop can run python notebooks very easily and you faced lots of issue due to admin permissions or some other stuff?
Just turn on a setting.
in windows 11
...
-1
votes
3
answers
90
views
Why do I get ModuleNotFoundError for 'requests' even after installing it with pip? [closed]
I am learning Python and working on a small project using VS Code on my PC. I installed the requests package using pip, and the installation completed successfully. However, when I try to import it in ...
0
votes
0
answers
64
views
VS Code (Remote + Docker) Go to Definition jumps to ROS2 install/ Python packages instead of src/
I am using vscode remote explorer into a remote computer (SSH), into a docker container. This remote computer will be an autonomous robot, which will run the relevant code. I do it this way because I ...
2
votes
3
answers
183
views
Not finding Module in non child folder in Python
I have a Python project in VS Code with this file structure:
project
src
main.py
__init__.py
lib
utils.py
__init__.py
The __init__.py files are empty. (Update: ...
0
votes
1
answer
135
views
Debugging problems with uv, Polars, and Visual Studio Code
I'm having a lot of problems in the interaction between uv, Polars, and Visual Studio Code.
I run my Polars code within a virtual environment built with uv.
Sometimes the kernel just dies.
Sometimes a ...
2
votes
1
answer
124
views
Debugging Jupyter Notebook in VS Code
I tried to debug a notebook in VS Code but I can't. When I set a breakpoint and run debug cell or press F5, I am getting this error
/usr/bin/env /home/user/anaconda3/envs/myenv/bin/python /home/user/....
1
vote
0
answers
54
views
Disable attribute evaluation in debugpy / pydevd in Visual Studio Code
I have an object which has multiple properties that when accesses query a SQL database. When I debug a region where such an object is present, e.g. in VSC with debugpy, all these attributes are ...
0
votes
1
answer
92
views
How do I turn the Run button into Run and Debug in VSC?
On my newest project in VSC, I have a Run button:
(with a play symbol),
but on my previous project, I had a Run and Debug button:
(with a bug symbol over the play symbol).
How do I get the Run ...
0
votes
1
answer
65
views
How to use debugger in Colab?
when we use vscode we can debug inside function from where we call function. How to do like that in google colab cloud server? Please help me.
def decorator(func):
def wrapper():
print(&...
Advice
1
vote
4
replies
213
views
Best resources to learn Data Structures, Algorithms, and Big-O from scratch (for Python)
I want to learn Data Structures, Algorithms, and Big-O notation from scratch, but there are too many resources online and it’s difficult to determine which ones are trustworthy or widely used by ...
0
votes
0
answers
55
views
Using jupterlab-sidecar (or similar) within VSCode notebook
So VSCode (Cursor) allows one to use notebooks within it. A very nice widget for JupyterLab is this jupyterlab-sidecar, which allows one to split the screen and do things like visualize a map and ...
0
votes
1
answer
160
views
Can we edit .py files in VSCode and use Google Colab extension to run them on Google servers like Jupyter Notebooks?
I have just get my hands dirty with VSCode's extension Google Colab (by Google).
While I can connect to google servers for running Jupyter Notebooks (.ipynb files), Is there a way to use VSCode ...
2
votes
2
answers
92
views
VSCode/Pylance highlights "Import could not be resolved" after moving files from a subfolder to the root
I’m working on a Python project on Windows 11 using VSCode.
I recently reorganized my project by moving all files from a subfolder to the root folder so that the code can be executed directly from the ...
0
votes
2
answers
116
views
python: vscode doesnt highlight direct import from module
When I attempt to import a module from a local package (from core import config), VSCode's syntax highlighting isn't working. When hovering over config, it shows "config: Any" (the editor ...