Microsoft Updates Python VS Code Extension
Written by Mike James   
Thursday, 21 December 2023

Microsoft has released improved extensions for Python and Jupyter for Visual Studio Code. The improvements include configurable debugging options and the ability to show the type hierarchy with Pylance.

Visual Studio Code is Microsoft's open source code editor that shares part of its name, but not much else, with full Visual Studio. It is open source under a MIT license and development is conducted on GitHub. It is free to use and according to surveys is the preferred IDE across all developers.

vscodeicon

The Python extension lets developers use VS Code as a Python editor with all of VS Code's features including auto complete and IntelliSense, linting, debugging, and unit testing. The Jupyter Extension is a A Visual Studio Code extension that provides basic notebook support for language kernels that are supported in Jupyter Notebooks, and allows any Python environment to be used as a Jupyter kernel.

The first improvement is to the Python Debugger extension which now has configurable debug options. You can now choose from the list of available debug configurations when you select the debugger. If no configuration is available, you'll be prompted to select a debug configuration template to create one.

The next change makes it easier to explore and navigate through your Python projects' types relationships when using Pylance. The VS Code teams says this can be helpful when working with large codebases with complex type relationships.

Pylance is an extension that works alongside Python in Visual Studio Code to provide language support. It is powered by Pyright, Microsoft's static type checking tool, and means you can see rich type information when coding in Python in VS Code.

The Python extension also has a new activation mechanism that activates the selected environment in your default terminal without running any explicit activation commands.

The updated Python and Jupyter extensions for Visual Studio Code are available now.

 vscodeicon

  • Mike James is both editor-in-chief of IProgrammer and a prolific author. VS Code is now his preferred code editor and is used throughout his Programmer's Python: Something Completely Different series of books and in his most recent title Extending & Embedding Python Using C, a book which takes a "best of both world's approach" - C for speed and Python for ease of programming.

More Information

VS Code Dev Website

Visual Studio Code Website

Related Articles

VS Code Can Do More Than You Imagine

VS Code Extensions As Malware

VS Code Adds Terminal Tabs

Python Extension For Visual Code Updated

Edge Tools Added To VS Code

Visual Studio Online Is VS Code

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Explore SyncFusion's Blazor Playground
16/04/2024

Syncfusion has provided an in-browser environment where you can write, compile and run code that uses Blazor components and get it previewed live.



The WinterJS Javascript Runtime Is Asking For Your Attention
11/04/2024

WinterJS is a brand new Javascript runtime by Wasmer which comes with the claim that it's the fastest of them all. Let's find out if that holds true.


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info