March 5th, 2025
0 reactions

Python in Visual Studio Code – March 2025 Release

Courtney Webster
Program Manager

We’re excited to announce the March 2025 release of thePython,Pylance andJupyter extensions for Visual Studio Code!

This release includes the following announcements:

  • Improvements to Python shell integration
  • New setting for auto test discovery file pattern
  • Inline values on hover in Notebooks and Python files
  • Automatic quotation insertion when breaking long strings

If you’re interested, you can check the full list of improvements in our changelogs for thePython,Jupyter andPylance extensions.

Improvements to Python shell integration

After modifying thepython.terminal.shellIntegration.enabled setting, you will no longer have to reload in order for changes to take effect. Previously changes to this setting required a reload of the VS Code window in order for changes to take effect in the terminal. Now, simply create a new terminal to see desired changes on your Python REPL in terminal!

New setting for auto test discovery file pattern

You can now refine which files auto test discovery occurs on by specifying a glob pattern in thepython.testing.autoTestDiscoverOnSavePattern setting. By default, its value is set to**/*.py, but can now be adjusted based on your specific project needs.

This feature was added by community member@soceanainn. Thank you for the feedback and feature add!

Inline values on hover in Notebooks and Python files

Notebook inline values, enabled via thenotebook.inlineValues setting, are now truncated to fit within the viewport’s width. Instead, a rich hover provides the full value with preserved whitespace formatting, ensuring variable structures, such as dataframes, remain intact for easier readability at a glance.

Notebook inline values shown on hover after cell execution.

Similarly, whendebug.inlineValues is enabled, inline value decorators are shown in Python and will now have an inline hover, making it easier to read values at a glance.

Inline values on hover in Python files debug mode.

Automatic quotation insertion when breaking long strings

Pylance now supports automatic insertion of quotation marks to enable a seamless experience when breaking long strings. This was a highly requested feature by our users and we are looking forward to bringing this functinoality to the Python development experience in VS Code.

Other Changes and Enhancements

We have also added small enhancements and fixed issues requested by users that should improve your experience working with Python and Jupyter Notebooks in Visual Studio Code. Some notable changes include:

  • Windows users who use Gitbash will now see the correct working directory in their terminal prompt. These changes apply to those opted into thepythonTerminalEnvVarActivation experiment.
  • We now look for test debug configurations in bothsettings.json andlaunch.json files, expanding where you can define these configurations.
  • Some optimizations were made to improve Pylance’s memory consumption, particularly when working with large workspaces.This enhancement was made to Pyright, the static type checker that powers Pylance’s language server features.

We would also like to extend special thanks to this month’s contributors:

Try out these new improvements by downloading thePython extension and theJupyter extension from the Marketplace, or install them directly from the extensions view in Visual Studio Code (Ctrl + Shift + X or ⌘ + ⇧ + X). You can learn more aboutPython support in Visual Studio Code in the documentation. If you run into any problems or have suggestions,please file an issue on thePython VS Code GitHub page.

Author

Courtney Webster
Program Manager

Stay informed

Get notified when new posts are published.
Follow this blog
youtube