Skip to main content

All Questions

-1 votes
0 answers
21 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 ...
lorenzo lobosco's user avatar
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 ...
Carl-Frédéric Marc-Aurèle's user avatar
-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 ...
Görkem Şahin's user avatar
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 ...
Antonio Sesto's user avatar
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 ...
cryanbhu's user avatar
  • 5,150
0 votes
1 answer
23 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 ...
Netradeepak's user avatar
-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 ...
icecream's user avatar
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. ...
Ivan's user avatar
  • 126
-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 ...
bzm3r's user avatar
  • 4,236
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 ...
Odyseus_v4's user avatar
0 votes
0 answers
123 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 ...
VishIsHere26's user avatar
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 ...
Rolf's user avatar
  • 106
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 ...
ali jafarzadeh's user avatar
0 votes
1 answer
28 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 ...
Master's user avatar
  • 11
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 ...
Michael Gabbay's user avatar

15 30 50 per page
1
2 3 4 5
555