Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
383 views

I have the following folder structure C:. │ docker-compose.yml │ Dockerfile │ ├───.devcontainer │ devcontainer.json │ └───app __init__.py main.py sub.py Dockerfile ...
Michael Xia's user avatar
3 votes
2 answers
308 views

When I type out something like np. I think this triggers Visual Studio Code + Pylance's (not sure) auto-import completion by suggesting that import numpy as np might be relevant. I would like to ...
bzm3r's user avatar
  • 4,664
4 votes
0 answers
462 views

Overview I have a VSCode workspace which contains two directories. In one is my main application, in another is a common package used by this application and a couple of others. # main-app.code-...
EmmaO91's user avatar
  • 468
0 votes
2 answers
265 views

I have installed a python module from source with the following command cd /path/to/ligpargen pip install -e . --config-settings editable_mode=strict According to this it should be the right way to ...
link89's user avatar
  • 1,979
-1 votes
1 answer
218 views

So I have a new installation of VSCode 1.91.1 in Win10, and installed Python and Pylance, but it's not highlighting thing like variables. I checked my settings.json and all it has is this! { &...
Strider's user avatar
2 votes
0 answers
129 views

I'm using PyLance in Visual Studio Code to work on a Dockerized Python project, and there are certain dependencies that is very complex to be built on MacOS, so I dockerized the project and now it ...
TaihouKai's user avatar
  • 411
1 vote
0 answers
500 views

Im properly importing classes from main program but still getting error as Import "Book" could not resolved by pylance(report missing imports). how to solve it in VSCODE? tried by adjusting ...
sowmya m's user avatar
1 vote
1 answer
358 views

I have recently created my own PyPI package with a bunch of useful functions. It works great, and when I import it in any project, the functions work, but my Visual Studio Code doesn't show the ...
Jeff Hansen's user avatar
2 votes
1 answer
722 views

I'm trying to import functions located in a Python file outside of my Visual Studio Code workspace. Let’s say my structure is: folder/ ├── workspace/ │ └── main.py │ └── python_scripts/ └─...
Sulli's user avatar
  • 889
2 votes
1 answer
1k views

I'm working on creating a Bazel Python project in VS Code, my project tree looks like: root scripts/main.py src/packageA/stuff.py Imagine src might have several packages but I'm trying to be concise!...
Cemlyn's user avatar
  • 23
1 vote
3 answers
151 views

I created the library to simplify a work-related problem. I followed the step-by-step process and successfully created the library. I used pip install on my machine (without virtual environments), and ...
Pedro Ferreira's user avatar
0 votes
1 answer
280 views

I want to find out its type when hovering over a variable with the mouse, but this does not work. Does anyone know how to do this? For example, when hovering over x, it writes some kind of Literal, ...
Migner's user avatar
  • 37
0 votes
1 answer
105 views

How can I ensure that when I instantiate a data structure in VSCode+Jupyter+Python, the attributes of the data structure are available for autocompletion throughout the notebook. # %% Jupyter Cell #1 ...
Kelley Brady's user avatar
5 votes
3 answers
4k views

The following message keeps appearing when I use VS code: Pylance has crashed. Would you like to try using a Node.js executable to run the language server? I wanted to solve the problem so I clicked ...
Junhyun Ahn's user avatar
0 votes
1 answer
180 views

I've encountered a problem with argument highlighting while unpacking a class into a function: Python can't figure out amount of arguments I want to provide while unpacking a class Let's say we have a ...
kas pro gamer's user avatar
2 votes
0 answers
3k views

While using Python, I have my Pylance settings set to "strict", which causes it to detect missing stub files and cause an error when there is no stub file present for an import. When going ...
bobbybob65536's user avatar
0 votes
1 answer
358 views

class CustomNamedException(Exception): """Example docstring here.""" def __init__(self, name) -> None: self._name = name def __str__(self): ...
Jiehfeng's user avatar
  • 1,067
2 votes
2 answers
3k views

I have a python project for which I have activated a virtualenv and installed everything in requirements.txt. This has been done manually through python -m venv /path/to/new/virtual/environment and ...
pkaramol's user avatar
  • 19.9k
1 vote
1 answer
215 views

I'm encountering an issue with Pylance, the language server for Python in Visual Studio Code. Despite having the pandas module installed in my Python environment, Pylance is reporting Import "...
Ristirianto Adi's user avatar
0 votes
0 answers
99 views

I'm currently trying to detect deprecated defs in Visual Studio Code's Pylance, as shown in the article below. How can I make VS Code treat usage of deprecated things in Python code as Problems? I set ...
NYA's user avatar
  • 3
1 vote
2 answers
180 views

I succesfully connect jupyter notebook in external server linux in my organization http://100.96.0.29:8888/?token=... through vscode in my laptop windows. I also succesfully installed some ...
Muhammad Ikhwan Perwira's user avatar
0 votes
0 answers
208 views

As said in the title, my Python Debugger in visual studio seems to only be working on new scripts I create. I must have accidentally updated something or changed a setting earlier since I got the ...
JH 902's user avatar
  • 33
0 votes
0 answers
45 views

When importing any module (matplotlib, geopandas, numpy, pysal, etc.) I get the message of "matplotlib" is not accessed Pylance I have read other posts saying you need to direct VSCode to ...
cmkellow's user avatar
0 votes
0 answers
24 views

When trying to finish my optimization program , the pyQT5 window isnt opening !!. Please Help Here is my code Did i maybe call the window wrong or smth ? **ERROR MESSAGE : QWidget: Must construct a ...
DextolReiniger3000's user avatar
1 vote
1 answer
112 views

I have the following code. from abc import ABC, abstractmethod from typing import * class ExampleClass(ABC): @abstractmethod def get(self): pass def class_factory(s: str) -> Type[...
big_noob's user avatar
  • 123

1
2
3 4 5
11