I am trying to get VScode to work with anaconda but having issues with numpy. I have managed to get VScode to use the right python environment From VScode (ctrl+shift+P, type Python:Select Interpreter and select the appropriate option). However, when I type “import numpy” in to my script, I get th…
Tag: visual-studio-code
How to stop autopep8 not installed messages in Code
I’m a new Python programmer using the Mac version of VS Code 1.45.1 to create a Django project. I have the Python and Django extensions installed. Every time I save a Django file, Code pops up this window: I keep clicking the “Yes” button to install the autopep8 extension but this message ke…
Python was not found but can be installed from the Microsoft store (March, 2020)
I started watching a Python course on YouTube in which the guy giving the lesson teaches using VSCode. He started with software installation (Python & Pycharm). Then, in VSCode he downloaded the Python extension (the one made by Microsoft) and the extension called “Code Runner” to run the Pyth…
jupyter server : not started, no kernel in vs code
i am trying to use jupyter notebooks from vs code and installed jupyter notebook extension and i am using (base)conda environment for execution. while this happened how to resolve this issue ? Answer I had exactly the same problem when I installed Visual Studio Code and tried to run some Python code from a ju…
Prettier vscode extension not support Django template tags {% tag %}
Prettier visual studio code extension not support Django template tags {% tag %} now How can I fix this? Do I have to disable Prettier extension for html files or is there another solution؟؟ issues 5581 in github = No Django template tags support Answer February 2022 Based on @Al Mahdi’s comment: Pretti…
Visual Studio Code syntax highlighting not working
I am using Visual Studio Code (VSC) as my IDE. My computer just updated to Catalina 10.15.2 (19C57) and since the update, now VSC is not highlighting syntax errors. The extensions I have seem to be working and it recognizes my miniconda python environment. Is there a solution for this yet? I was avoiding Cata…
VSCode remote Jupyter Notebook – Open an existing notebook in a specific folder on Jupyter Notebook remote server
I can connect to a remote Jupyter Notebook server with a token from VSCode through the “Python: Specify Jupyter server URI” command from the Command Palette. However, I didn’t find a way to do 2 things: Open an existing Notebook on the remote Jupyter Notebook server. Specify a folder to conn…
How can I set Beautify for VSCODE to indent Jinja2 and Flask?
Beautify indentation is ignoring Jinja2. I am using Beautify – HookyQR to help with formatting and indentation. HTML, Python, CSS … everything works fine. But when I start using Python, Flask with Jinja2 as I save it, it just ignores all the content and I lose all the indentation. This is what I w…
How to structure azure functions python project
I’m messing around with Azure Functions with Python and running into issues with getting a proper project directory structure. My goal is to have a library directory that I can put all the business logic in and then reference that from the functions entry point and also have a test directory that can te…
VS Code: Python Interpreter can’t find my venv
I’ve been stuck on this for a few days, kindly help me if you can. I have my venv folder on my root project folder. When I try to set the Python Interpreter, it shows me only the Python installed in my machine and not the one in my root folder. It was working fine until I formatted my PC