VinceG
VinceG

Reputation: 77

Why does vscode not show the output of my code in the output section?

I have already installed the code runner and Python extension for vscode. I also have installed Python 3.7 on my computer. It runs the code, but all it outputs is just this:

img

How can I fix this?

Upvotes: 1

Views: 5633

Answers (1)

jdpy19
jdpy19

Reputation: 375

The print statement is going to print to terminal, I would change tabs from Output -> Terminal.

I have been using VS Code for Python development for the last month and really have not used OUTPUT.

A tool that I really LOVE is their Jupyter notebook support. With a comment of '#%%' you can create a cell to run that outputs similar to Jupyter notebook. Make sure you download the Python extension from Microsoft.

Example:

#%% 
print('hello, world!')

Upvotes: 1

Related Questions