All Questions
Tagged with python visual-studio-code
8,312
questions
-1
votes
0
answers
23
views
Problems with Python and VS Code [closed]
I have a problem with Visual Studio Code and Python. I'm at the beginning, I installed Python, the extensions for VS Code, when I run the print("hello word") code, it gives me an error in ...
0
votes
0
answers
14
views
Error: No module named 'Processing' when using PyQGIS
I'm a beginner trying to work with PyQGIS and integrate QGIS processing algorithms into my Python scripts. I’m currently using Visual Studio Code as my IDE and trying to run a script that utilizes ...
-1
votes
0
answers
12
views
When writing python in visual studip code, the files work in the root directory, but when I put the files in the folder, it does not see the files
When writing python in visual studip code, the files work in the root directory, but when I put the files in the folder, it does not see the files.
There is no error in the code when I throw it to the ...
0
votes
0
answers
16
views
conda envs in jupyter and shell seem different
I have a python environment ml on a server. I connect to the server via Visual Studio Code and related extensions.
The ml environment uses Python 3.10.14.
I have this problem:
when I run Jupyter ...
0
votes
0
answers
9
views
No library tips in VS Code Jupyter Notebook
I do not get tooltips and documentation for libraries in VS Code Jupyter Notebook:
I only get function signatures:
It works for Python libs like datetime:
How can I get function documentation in VS ...
0
votes
1
answer
24
views
VS Code won't show more than 500 outputs for the same cell
I have a model training in an ipynb with 576 different sets of hyperparameters. Each will output training logs and a matplotlib plot. But after 500 I am getting the following output.
How to increase ...
-1
votes
1
answer
26
views
When debugging in VS Code, it doesn't take command inputs for Python
While debugging in VS Code, I am trying to give command lines but it doesn't take any and it moves directly to input(). Here len(sys.argv) is always equal to one.
I saw an old question which was ...
0
votes
0
answers
22
views
VSCode Terminal.runSelectedText SyntaxError: multiple statements found while compiling a single statement
I updated my Windows version from Windows 10 to Windows 11. I used to run multiple lines of code in the VSCode terminal at the same time using shortcuts thanks to the option Terminal.runSelectedText. ...
-1
votes
1
answer
25
views
In Visual Studio Code, how can I rename a variable in Python and also update its occurrences in ReST formatted documentation?
Suppose I have:
class Hello:
"""An example class."""
world: str
"""This is the only field on :py:class:`Hello`."""
It is documented ...
0
votes
1
answer
25
views
VSCode, Pylance how to get proper help popup?
I enhanced a class by adding some few methods from another class (Jira's class from atlassian-python package)
My class is called JiraExtended.
Original methods from the class display this way:
The ...
0
votes
0
answers
126
views
ImportError: DLL load failed while importing onnx_cpp2py_export: A dynamic link library (DLL) initialization routine failed
I'm trying to set up and test the OCR model from the doctr library provided by Mindee
(https://github.com/mindee/doctr)
within a VSCode. I installed the package in run.ipynb using the following ...
1
vote
0
answers
39
views
Breakpoints in Python code are ignored when I run "Debug Test" in VSCode
Whenever I run "Debug Test" (from either the testing pane or by right clicking on the margin left of the code and selecting it) it runs the test just fine but it ignores breakpoints.
I've ...
0
votes
0
answers
31
views
reactivating terminal in loop [closed]
When I try to run the code, this message appears: Reactivating Terminals.
I uninstalled Python and VSCode, but this didn’t fix the problem.
I use Python 3.12. The kernel selection doesn’t appear, and ...
0
votes
1
answer
29
views
How to use Flake8 as linter for Jupyter notebook in vscode?
I have installed the Flask8 plugin in Vscode from the extension library.
I want the linter to work in Jupyter notebook for file extension .ipynb.
I tried ctrl + shift + p to change linter. I cannot ...
1
vote
3
answers
43
views
Vs-code unable to import modules modules load
I'm opening the same python project in pycharm and everything is working well
opening same folder on vs code with same interpreter
I'm getting error 'Unable to import' on local modules in the project
...