visual-studio-code

Update failed with error code BUILD_DOCKER_UNKNOWN

Update failed with error code BUILD_DOCKER_UNKNOWN Question: I am using VS Code with the Cloud Code extension to try to deploy a Python script to GCP Cloud Run. I am able to run the "hello, world" python flask app locally with the Cloud Run emulator and am also able to move it to deploy it …

Total answers: 2

vscode python: how to log to both file and terminal

vscode python: how to log to both file and terminal Question: Before adding logging to my project, i would see all logs from libraries such as flask in the terminal console. After adding the following, i no longer see these output in the terminal – but they do show up in the log file. I …

Total answers: 1

How to debug a file from current directory with Python in VS Code?

How to debug a file from current directory with Python in VS Code? Question: I can see that this question has been asked multiple times already however, none of the solutions seems to be working anymore, forcing me to ask for the latest fix. Problem I have created a workspace in VS code with the …

Total answers: 1

How do I apply environment variables to Python Interactive (#%%)?

How do I apply environment variables to Python Interactive (#%%)? Question: In Python Interactive using the #%% cell designator for .py files, I frequently use os.getenv("VAR") to test code that uses environment variables. My interpreter is a Python virtual environment. I am frequently adding and removing environment variables to my environment startup script at source …

Total answers: 2

Debugger does not start in VSCode for Django

Debugger does not start in VSCode for Django Question: I’m trying to debug my Django project, but whenever I hit the play button on the run and debug window in VSCode, it thinks for a second, and then completely stops. My project runs completely fine when I run it with the "runserver" command. I’ve tried …

Total answers: 1

Is there any way to autoload the PyGame skeleton in VS Code?

Is there any way to autoload the PyGame skeleton in VS Code? Question: I recently started learning with PyGame and I’m getting tired of writing the basic skeleton over and over again. Is there any way to make Visual Studio Code autoload the skeleton for me? For example in HTML, when you write an exclamation …

Total answers: 1

VS code Jupyter output not showing full output

VS code Jupyter output not showing full output Question: I wrote an extended input code where user will input many options. So the output generated will continuously build up. However, juypter notebook in VS code will limit the output to this: there will be ‘…’ after serveral input prompts so i cant see what i …

Total answers: 1

In vscode, if I put a comma in an element, it aligns vertically

In vscode, if I put a comma in an element, it aligns vertically Question: In vscode, if I put a comma in an element, it aligns vertically. It seems to have happened since I installed black in Python. css is also vertically aligned. How do I put this exception? For example, if about 80 characters …

Total answers: 3

Error in running a project regarding virtual environment and "DJANGO_SECRET_KEY" in VS code

Error in running a project regarding virtual environment and "DJANGO_SECRET_KEY" in VS code Question: 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: File "c:UsersMEDesktoptestz_toolsettings.py", line 28, in <module> SECRET_KEY …

Total answers: 1