We’re excited to announce the July 2024 launch of the Python and Jupyter extensions for Visible Studio Code!
This launch contains the next bulletins:
- Enhanced setting discovery with python-environment-tools
- Improved help for reStructuredText docstrings with Pylance
- Neighborhood contributed Pixi help
If you happen to’re , you’ll be able to examine the complete listing of enhancements in our changelogs for the Python, Jupyter and Pylance extensions.
We’re excited to introduce a brand new software, python-environment-tools, designed to considerably improve the pace of detecting international Python installations and Python digital environments.
This software leverages Rust to make sure a fast and correct discovery course of. It additionally minimizes the variety of Enter/Output operations by accumulating all needed setting info without delay, considerably enhancing the general efficiency.
We’re presently testing this new characteristic within the Python extension, working it in parallel with the present help, to guage the brand new discovery efficiency. Consequently, you will notice a brand new logging channel known as Python Locator
that reveals the invention instances with this new software.
This enhancement is a part of our ongoing efforts to optimize the efficiency and effectivity of Python help in VS Code. Go to the python-environment-tools repo to be taught extra about this characteristic, ongoing work, and supply suggestions!
Improved help for reStructuredText docstrings with Pylance
Pylance has improved help for rendering reStructuredText documentation strings (docstrings) on hover! RestructuredText (RST) is a well-liked format for documentation, and its syntax is usually used for the docstrings of Python packages.
This characteristic is in its early phases and is presently behind an experimental flag as we work to make sure it handles varied Sphinx, Google Doc, and Epytext eventualities successfully. To strive it out, you’ll be able to allow the experimental setting python.evaluation.supportRestructuredText
.
Widespread packages the place you would possibly observe this alteration of their docstrings embrace pandas
and scipy
. Do that change out, and report any points or suggestions on the Pylance GitHub repository.
Word: This setting is presently experimental, however will seemingly be enabled by default sooner or later because it turns into extra stabilized.
Because of @baszalmstra, there may be now help for Pixi setting detection within the Python extension! This work added a locator to detect Pixi environments in your workspace just like different widespread environments akin to Conda. Moreover, if a Pixi setting is detected in your workspace, the setting will mechanically be chosen as your default setting.
We recognize and sit up for continued collaboration with neighborhood members on bug fixes and enhancements to enhance the Python expertise!
We’ve got 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 adjustments embrace:
We might additionally like to increase particular due to this month’s contributors:
As we’re planning and prioritizing future work, we worth your suggestions! Under are a number of points we’d love suggestions on:
Check out these new enhancements by downloading the Python extension and the Jupyter extension from the Market, or set up them immediately from the extensions view in Visible Studio Code (Ctrl + Shift + X or ⌘ + ⇧ + X). You may be taught extra about Python help in Visible Studio Code within the documentation. If you happen to run into any issues or have ideas, please file a difficulty on the Python VS Code GitHub web page.