How to Display Python output in VS code terminal
Asked Answered
G

2

2

So.. whenever i try running Python codes in Vs code the output isn't shown in terminal part but the output part, can someone tell me how to make the output visible in terminal part plss

Genesia answered 17/8, 2022 at 17:30 Comment(1)
use print() statementsGoshorn
B
1

Running code in VS Code defaults to outputting results in the TERMINAL panel.

enter image description here

Have you downloaded and installed the Code Runner extension? and run the code with the option Run Code it brings?

If so, please add the following configuration to your settings.json file, this will make Code Runner run the code and output the result in the TERMINAL panel.

    "code-runner.runInTerminal": true,

enter image description here

Beefwitted answered 18/8, 2022 at 1:26 Comment(0)
H
0

I learned in another answer here the possibility of using the "Interactive Window" to see output content.

Use "Run in interactive window

I'm not sure this is standard or not. I have Jupyter installed and also a couple extensions. But here's a guide to use it:

https://code.visualstudio.com/docs/python/jupyter-support-py

Heartland answered 26/7, 2023 at 4:24 Comment(2)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Shameful
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewExscind

© 2022 - 2025 — McMap. All rights reserved.