We’re excited to announce the February 2025 launch of the Python, Pylance and Jupyter extensions for Visible Studio Code!
This launch consists of the next bulletins:
- No-config debugging
- Check discovery cancellation
- Launch the Native REPL from the terminal
- Go to Implementation with Pylance
- AI Code Motion: Generate Image (Experimental)
In the event you’re , you’ll be able to test the complete listing of enhancements in our changelogs for the Python, Jupyter and Pylance extensions.
No-config debugging
After listening to group suggestions that configuring the debugger could be troublesome, we’re introducing a no-config debugging expertise! We’re excited to say that that is now obtainable within the Python Debugger extension!
Because the title implies, this workflow means that you can begin the debugger with out creating or managing a Python debug configuration in launch.json. Merely exchange python with debugpy prefixed in your run command within the terminal, for instance debugpy <script.py or module>, to start out a debug session.
NOTE: We additionally advocate including the next to your Person
settings.jsonfile:"python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"]as this experiment is understood to battle with this new characteristic. You possibly can nonetheless activate your terminals utilizing regular activation instructions.
You’ll see suggestions within the terminal {that a} debug session is beginning and the debug toolbar pop up within the editor. Set breakpoints within the UI and open up the debug toolbar to make use of all of VS Code’s debugging performance.
For extra info and troubleshooting suggestions, take a look at the no-config debugging wiki. We might love to listen to your suggestions on this new characteristic – you’ll be able to open points and have requests in our repository.
Check discovery cancellation
When triggering take a look at discovery from the Check Explorer UI, now you can cancel an ongoing take a look at discovery name. Use the Cancel Check Refresh button, which seems in substitute of the Refresh button throughout discovery.
Launch the Native REPL from the terminal
You at the moment are in a position to launch a VS Code Native REPL out of your terminal REPL. By setting python.terminal.shellIntegration.enabled to true, a clickable hyperlink will show within the Python REPL within the terminal, permitting you to instantly open the VS Code Native REPL from the terminal. This may ultimately be set to true by default, however for now you’ll be able to allow it manually.
The Native REPL means that you can iteratively run Python code just like the Python REPL positioned within the terminal enhanced with options resembling IntelliSense and syntax highlighting.
Go to Implementation with Pylance
Pylance now has help for Go to Implementation, which lets you extra rapidly navigate to the implementation of a perform or methodology instantly from its utilization. This characteristic is especially useful when working with inherited lessons.
AI Code Motion: Generate Image (Experimental)
There’s a brand new experimental AI Code Motion for producing symbols with Pylance and Copilot. To attempt it out, you’ll be able to allow the next setting: "python.evaluation.aiCodeActions": {"generateSymbol": true}.
With this enabled, when you outline a brand new image, resembling a category, perform, or variable, you’ll be able to choose the Generate Image with Copilot Code Motion and let Copilot deal with the implementation! Afterward, you’ll be able to leverage Pylance’s Transfer Image Code Actions to relocate it to a unique file.
Different Modifications and Enhancements
Now we have additionally added small enhancements and stuck points requested by customers that ought to enhance your expertise working with Python and Jupyter Notebooks in Visible Studio Code. Some notable adjustments embrace:
- This launch is the final launch with help for Python 3.8 in all our extensions (Python extension, Python Debugger, Python Environments, and Python tooling extensions).
- The Python Environments extension APIs now help grouping environments by atmosphere managers and permits package deal managers to regulate the frequent package deal lists, offering extra flexibility to suppliers.
We might additionally like to increase particular due to this month’s contributors:
Check out these new enhancements by downloading the Python extension and the Jupyter extension from the Market, or set up them instantly from the extensions view in Visible Studio Code (Ctrl + Shift + X or ⌘ + ⇧ + X). You possibly can study extra about Python help in Visible Studio Code within the documentation. In the event you run into any issues or have recommendations, please file a difficulty on the Python VS Code GitHub web page.





