“What would Brett do?” –Visual Studio Magazine


New Python Configuration Tool for VS Code: “What Would Brett Do?”

Microsoft’s Python Tool in Visual Studio Code development team has announced a new experimental extension for setting up Python environments with an unusual name: WWBD, for “What Would Brett Do?” for Python environments.

It bears the name of its creator, Brett Cannonresponsible for engineering for the main Python extension who is also a member of the Python Steering Council.

“Through a command called ‘WWBD:Create Environment’, it offers a very savvy flow of creating a virtual environment using Friand automatically install dependencies if listed in a requirements file on the workspace,” said Microsoft’s Luciana Abud, program manager for the Python extension on the VS Code team. According to the Python documentation, venv is a module for creating “lightweight virtual environments”. ” with their own site directories, which can optionally be isolated from the system site directories.

What would Brett do?
[Click on image for larger view.] “What would Brett do?” (source: Microsoft).

Preview WWBD extension points out that the experimental tool is very opinionatednoting: “While the supported project structures and workflows are considered common enough, don’t be surprised if your particular workflow isn’t supported, especially if it would be considered advanced for someone new to Python.

“This extension is meant to serve as a playground for Python extension around environments and to solicit feedback on the features of this extension. If you have any feedback, please post a discussion. Popular feature may make its way into the Python extension itself.” Being brand new, there isn’t much talk now, and the tool has only been installed 82 times, while the GitHub repository shows six stars.

The core Python extension is by far the most popular tool in the VS Code marketplace, with over 58 million installs. Other highlights of the tool’s regular monthly update include:

  • Localization support: The Python extension can now translate all languages ​​supported by VS Code media. “We’ve updated the way we get text from our commands, notifications, and titles to use translations maintained by a localization team, to make sure they’re up-to-date and correct.”
  • Discovery of the Python interpreter: This limits cases where the Python extension tries to find Python interpreters, which was happening every time the tool was activated or loaded. From now on, it searches for interpreters only when:
    • a new folder or workspace is opened for the first time
    • when the “Python: select interpreter” command is triggered
    • when the list of performers is refreshed
  • Jupyter extension support at vscode.dev/github.dev: For online versions of VS Code and GitHub, the new web version of the JupyterName the extension received new features:
    • https support
    • kernel completions
    • ipywidgets
    • notepad debugging
    • variable visualization
    • export
    • interactive window
  • Insider Program for Pylance: The team provided a smoother activation and upgrade experience for the Pylance expansionThe Insiders Program, which provides preview updates for developers so they can try out the latest features and bug fixes sooner.

Many other changes and improvements are detailed in the announcement post.

About the Author

David Ramel is an editor and writer for Converge360.

Comments are closed.