We're excited to announce that the May 2022 Python and Jupyter extensions for Visual Studio Code are now available!
In this release, we've added three new extensions: Black, isort, and Jupyter Powertoys.
If you're interested, you can check out our blog for full updates on the Python, Jupyter, and Pylance extensions.
Black
As we have stated , our team is working on breaking out the tooling support we provide in the Python extension into separate extensions to improve performance and stability.
We now have a new Black extension , the Python formatter. Similar to the pylint extension, this new extension uses the Language Server Protocol for format support, and it ships with the latest version of Black - so you no longer need to install it in your Python environment.
You can try this new extension today by installing it from the market . Then open a Python file, right-click the editor and select "Format document with ...". You can also run the "Format document with ..." command from the Command Palette (Ctrl + Shift + P or ⌘ + ⇧ + P). If you have any questions or feature requests, you can submit them to the GitHub repository .
Isort
We also have a new extension to sort imports using isort. When you open a file and your imports don't follow isort 's standards, it displays error diagnostics and provides code actions to fix import order.
Jupyter Notebooks on the browser
Jupyter extensions can now be installed as web extensions that can be used with vscode.dev . However functionality is currently limited and only supports notebooks (.ipynb files) running on Jupyter servers that do not require https.
If you want to experiment with the feature, start Jupyter from your local machine:
jupyter --no-browser --NotebookApp.allow_origin_pat=https://.*\.vscode-cdn\.net
and connect to it with this command: Jupyter: Specify Jupyter server for connections.
The team will enable a number of features in upcoming releases, including:
- "https" based server
- IntelliSense
- Data view
- variable view
- Interactive window
- PyWidgets
- Drawing view
- Export
Jupyter Powertoys extension
The Jupyter team is pleased to announce the Jupyter Powertoys extension, which provides experimental functionality for working with Jupyter Notebooks. In its first version, the following functions have been prototyped:
- Kernel Admin Panel
- context help
- perform grouping
We look forward to your use and feedback so that more users can support this feature!
For more information, see the README file in the vscode-jupyter-powertoys repository.
Jupyter kernel improvements
Numerous updates to kernel processing:
To make kernel crashes more timely for users, the extension now displays this information in the cell output.
Troubleshooting guidance is now provided in the cell output when certain known errors are detected during execution.
Troubleshooting kernel execution issues can be a tricky and time-consuming process. That's why we've put together a troubleshooting section on the wiki to hopefully help you find a solution faster. Of course, our GitHub Discussions forum is also a great resource for getting help.
Other changes and enhancements
We've also added some small enhancements and user-requested fixes that should improve your experience with Python and Jupyter Notebooks in Visual Studio Code. Some notable changes include:
Changing the language server no longer requires a window reload ( vscode-python#18884 )
Fix support for selecting shell-like interpreter paths that may not exist on the filesystem ( vscode-python#18920 )
Renaming a method with Pylance also renames all overridden methods. ( pylance-release#813 )
▌We would also like to give a special thanks to this month's contributors
Quan Zhuo : Fix download failure of prebuilt ripgrep binaries when building from source
https://github.com/microsoft/vscode-python/issues/19036vscode-python#19036
Dr-Irv : Improved IntelliSense when using pandas, thanks to several pandas stub fixes ( python-type-stubs#186 , python-type-stubs#187 , python-type-stubs#188 , python-type- stubs#190 )
sunyinqi0508 : Fix bug when file path contains special characters ( vscode-python#18829 )
Capphosra: Replace the Buffer
constructor with a safer method to reduce security concerns. (vscode-jupyter#9562)
Try these new improvements by downloading the Python extension and Jupyter 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 about Python support in Visual Studio Code in the documentation. If you run into any issues or have suggestions, please file an issue on the Python VS Code GitHub page.
Long press to identify the QR code and follow Microsoft China MSDN
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。