Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm-like console in Visual Code Studio

I wanted to give VSC a try for developing some Python programs, where I only used PyCharm before. One of the most helpful features for me in Pycharm was the PyDev Console, where I can quickly try small snippets of code (think 3-10 lines), and adjust it to work the way I want it to.

I see VSC has a console, but it's much more like the regular IDLE console, where it's kind of hard to write these snippets of code (fixing something 2 lines prior for example is pretty much impossible).

I've been searching for an extension that'll give me a PyCharm-like console experience in VSC, but have been unable to find one. Is is out there? Or is there another way to get to the same result (like setting up a custom console based on the same PyDev console)?

like image 391
Matthijs Kramer Avatar asked Jul 27 '26 05:07

Matthijs Kramer


1 Answers

Have you tried Jupyter Notebook and Interactive? There are provided by the Jupyter Extension which is bound with Python Extension.

Open the Command Palette (Ctrl+Shift+P), with the command of:

Jupyter: Create New Blank Notebook

Jupyter: Create Interactive Window

You can refer to the official docs for more details.

like image 172
Steven-MSFT Avatar answered Jul 28 '26 19:07

Steven-MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!