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
Tag: visual-studio-code
How to debug remote python code from local windows vs code
I want to debug python code (on remote linux) in local windows with VS code. I did as follows: In windows VS code, I can open remote linux python project using SSH. Installed python debug tool ptvsd both in windows and remote linux. Add code below in python project: Project launch.json: Start run in remote linux. Add break points in
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
Python long list is broken into annoying multiple line in VScode?
enter image description here Hi, I am using VScode for python. I face an annoying point in autoformat that a long list is broken into multiple lines as shown in the picture. I try to change wordwrap property but it does not help. Answer I use the Python formatting toolkit “autopep8”, and its effects are as follows: It is recommended
VSCode on WSL does not have right-click options features, such as find code reference
I am running VSCode on WSL, but unfortunately I lost a lot of functionalities. For example, when I right-click on a function, it only shows: There is no option for example to do code referencing. As comparison, here is the right-click option when I run VSCode on Windows: Any solution? Thanks! Answer You have to reinstall extensions for the WSL
Problem formatting python when using Prettier in vscode
In vscode I want to use Prettier as my default formatter, but not for Python, where I will just use autopep8. I have the following settings now: When I save a python file, it gives me the message: “Extension ‘Pretier – code formatter cannot format etc…’. So, apparently it still uses the wrong formatter for python files. How do I
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 ?