We’re excited to announce the August 2024 launch of the Python and Jupyter extensions for Visible Studio Code!
This launch consists of the next bulletins:
- Improved Python discovery utilizing python-environment-tools
- Inline variable values proven in supply code
- Enhancements to the VS Code Native REPL for Python
In the event you’re , you may verify the complete record of enhancements in our changelogs for the Python, Jupyter and Pylance extensions.
Improved Python discovery utilizing python-environment-tools
Within the final launch, we introduced the Python atmosphere instruments, which redesigned the Python discovery infrastructure centered on efficiency. This new method reduces the necessity for executing python binaries to probe for data and thus bettering efficiency.
Beginning on this launch, we’re rolling out this enhancement as a part of an experiment. In case you are fascinated with attempting this out, you may set "python.locator"
to "native"
in your Person settings.json
and reload your VS Code window. Go to the python-environment-tools repo to study extra about this function, ongoing work, and supply suggestions.
Inline variable values proven in supply code
The Python Debugger extension launched an Inline Values function to reinforce your Python debugging expertise making it simpler to trace variable values throughout a debug session. This function allows the show of variable values instantly within the editor, subsequent to the corresponding line of code throughout a debugging session. This lets you shortly perceive the state of your program while not having to hover over variables or verify the variables pane. To allow this function, set the configuration worth debugpy.showPythonInlineValues
to true
in your Person settings.
Be aware: This function is at the moment in exploration state and enhancements are actively being made. Please check out this function and supply suggestions within the vscode-python-debugger repo!
Enhancements to the VS Code Native REPL for Python
The experimental native REPL ("python.REPL.sendToNativeREPL": true
) will now show success/failure UI, just like that in a Jupyter cell, relying on the result of execution. Moreover, we have now made enhancements in order that we not show an empty line on cells that generate no output.
We have now additionally added small enhancements and glued points requested by customers that ought to enhance your expertise working with Python and Jupyter Notebooks in Visible Studio Code. Some notable modifications embody:
- Pylance now gives a option to disable unreachability hints in @pylance-release#6106
- The Debug Welcome view now features a button for fast entry to automated Python configurations when a Python file is open within the editor
As we’re planning and prioritizing future work, we worth your suggestions! Under are just a few points we’d love suggestions on:
- In a joint effort from numerous elements of the Python group, we’re accumulating responses about utilization of kind annotations in Python. Please take a couple of minutes to share your expertise within the Kind Annotation in Python survey! The survey will shut on the finish of August 2024.
- Design proposal for check protection in (@vscode-python#22827)
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 solutions, please file a difficulty on the Python VS Code GitHub web page.