I am a beginner, and its been hard to know where to search info about the problem, but I have been all day searching solutions yet I haven’t found anything that would help words I am trying to import: my file In which I am trying to import: the error popping: I am trying to import my file words to
Tag: visual-studio-code
VS Code cursor bug in terminal
Cursor repeating and remaining in the Integrated Terminal in VS Code I encountered this bug in my terminal while doing Python tutorial so downloaded and reinstalled the same version (latest version of VS Code) but the problem persists. I looked about for some answers but only found this tutorial which is not related. Anyway, I reinstalled the software only to
vscode Flake8 ignore
Flake8 was installed lately by one of the updates of vscode. I think it is time to comply to the “rules” of python to writer better and more readable code. Unfortunately I have some errors that I cannot fix in the code (no discussion about that, but a local module has to be loaded before some others). I want to
Python module not found even though its installed
Does anyone else have this issue? For reference check this screenshot: PIP is also up to date and I already tried reinstalling it but it didn’t work neither. I’m using VS Code. It also worked just fine yesterday but today it didn’t anymore for some reason. Answer Your mss package is installed locally, but you are using a virtual environment
ImportError: cannot import name ‘MyClass’ from “myFile.py”, without restarting the notebook
Using VSCode, I have a file myFile.py with a class myClass No in a JupyterNotebook someNb.ipynb inside the same folder as myFile.py I just want to import myClass in a python cell: However, even though I am saving both files (as stated in other questions), I get the following error: I also tried to add before from myFile import myClass,
Error in running a project regarding virtual environment and “DJANGO_SECRET_KEY” in VS code
I want to run a project from gitlab on my local machine. I cloned the project, created a virtual environment and activated it. When I want to run without debugging I got this error: The output of this project is a form, how can I solve this error to get the output? Answer There’s a good explanation here https://stackoverflow.com/a/47117966/20027268 basically
use different python version (3.8) and virtual environment in VSC workspace (sub)folder only
I would like to use a different version of Python (3.8.0) and a dedicated virtual environment in a subfolder of a VSC project/work space. Is this possible? Any pointers would be very much appreciated. Thus far U tried to follow this using pyenv. I ran: in the VSC terminal but when I run: I still get: Is there a step
vscode + python + interactive mode + variable explorer slow and inaccurate
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
‘setup.py install is deprecated’ warning shows up every time I open a terminal in VSCode
Every time I boot up terminal on VSCode, I get the following prompt. This does not happen on Terminal.app. How do I resolve this? Answer Install the setuptools 58.2.0 version using the following command
VSCode Python Test Discovery fails?
VS Code version: version Version: 1.69.2 (Universal)) Extension version (available under the Extensions sidebar): v2021.12.1559732655 OS and version: MacOS 12.3.1 Python version: 3.6.8 Type of virtual environment used (N/A | venv | virtualenv | conda | …): venv Relevant/affected Python packages and their versions: pytest==7.0.1 problem: Answer Since none of the above answers solved my problem, I recently google the