Skip to content
Advertisement

Tag: visual-studio-code

Can not find Python Quandl&Pandas Syntax Error

I was following a tutorial from this guy and I was writing the exact same code to VS code except that Quandl is not written in uppercase anymore. I will leave a ss of the code here for who don’t want to watch video. reference code https://www.youtube.com/watch?v=lN5jesocJjk&list=PLQVvvaa0QuDfKTOs3Keq_kaG2P55YRn5v&index=3 Here is the code I wrote -exact copy of the code above but

ImportError cannot import name Deque with spacy

I’m trying to import spacy to use on VSCode, but I am getting an error: “Exception has occurred: ImportError cannot import name Deque.” I did pip install -U spacy in my virtual environment. Wondering how to solve the error so that I can use spacy? This import error goes away if I try other Python libraries. For ex, “import nltk”

Pygame window isn’t updating

I’m writing a small python game just to learn how to use python better. I wanted to try to start using multiple scripts, as keeping all of the code in one script can get a little crowded. I made a second script, created a function main(scrn) and everything seems to be working fine. Calling that function in my main script,

How do I use colorama inside a tuple?

I’m trying to change individual existing lines inside an existing tuple. Example: I want ID to be one color, Name, Age, Condition, Medicine, Temperament, and Adoptable to be a different color. I can’t figure out how to enter the escape codes for color inside the existing tuple. Help! Answer You need to prepend Fore.<COLOR> and preferably append Style.RESET_ALL to every

Why is kivy not working in Visual Studio code?

I was writing a piece of code with kivy with all the packages installed. When I run the code it still shows “No module named kivy”. The modules were installed from both the command prompt and the VS code terminal though this code had worked fine just a few days ago. Today i opened it and it showed me this

Visual Studio Code color not working when using python types

I am using the new python syntax to describe what types my methods return e.g.,: def method(unpacked_message: dict) -> dict: This seems to break the vscode color scheme Expected colors: Environment and vs code extensions: Python 3.6.9 on ubuntu ms-python.python v2020.11.371526539 tht13.python: Python for VS code v0.2.3 magicstack.magicpython: MagicPython v1.1.0 The code runs flawlessly. Am I doing something wrong ?

Advertisement