We’re excited to announce that the June 2023 release of the Python and Jupyter extensions for Visual Studio Code are now available!
This release includes the following announcements:
- Test Discovery and Execution Rewrite
- Run Python File in Dedicated Terminal
- Preview: Intellisense support for overloaded operators
- Configurable indexing limits with Pylance
If you’re interested, you can check the full list of improvements in our changelogs for the Python, Jupyter and Pylance extensions.
Test Discovery and Execution Rewrite
This month, we are beginning the roll out of our testing rewrite behind an experimental feature. This rewrite redesigns the architecture behind test discovery and execution for both unittest and pytest in the extension. While it does not provide any additional functionality exposed to the user, it provides a faster and more stable experience, and opens up new functionality opportunities moving forward.
The rewrite will be rolled out behind the experimental "pythonTestAdapter" flag, which you can opt into with "python.experiments.optInto" in your settings.json.
Eventually, we plan to remove the setting and adopt this new architecture. If you have any comments or suggestions regarding this experiment or rewrite, please share them in the vscode-python repo.
Run Python File in Dedicated Terminal
UPDATE (13 June 2023) – This feature has been rolled back due to a bug tracked by vscode-python#21393.
The Python extension will now create a new terminal for each file you run using the run button in the top right corner of the editor or the Python: Run Python File in Terminal command. This also means the Python extension will keep using this file’s “dedicated” terminal every time you re-run the file.
Any time you wish to run the same file in a separate terminal, you can run select Python: Run Python File in Dedicated Terminal under the run button menu.