News

VS Code Gets New Python Language Server, Named After Monty Python Character

Someone on the development team for Python in Visual Studio Code is a Monty Python fan.

Microsoft announced a new Python language server for the wildly popular open source, cross-platform VS Code editor.

The famed versatility of VS Code is bolstered by its extensive dependence upon language servers, which use the Language Server Protocol to provide language-specific "smarts" in the editor such as autocomplete and smart completions (IntelliSense), error-checking (diagnostics), jump-to-definition, linting and corrections, find all references and so on.

This week, the dev team for Python in Visual Studio Code announced a new tool to provide those smarts, Pylance, named after a character created by the British Monty Python surreal comedy troupe.

"The name Pylance serves as a nod to Monty Python's Lancelot, who is the first knight to answer the bridgekeeper's questions in the Holy Grail," said Savannah Ostrowski, a program manager, in a June 30 blog post. (For fans of "Monty Python and the Holy Grail" -- an acquired taste -- those questions can be found here.)

Microsoft has gone all in on Python for VS Code, and that language extension is now by far the No. 1 tool in the VS Code Marketplace, nearing 22 million downloads.

Pylance in Animated Action
[Click on image for larger, animated GIF view.] Pylance in Animated Action (source: Microsoft).

After months of development to improve upon the performance of the existing language server released in 2018, the team created the new tool based on the company's Pyright static type checker.

Some of its capabilities include:

  • Type information
  • Auto-imports
  • Type-checking diagnostics
  • Multi-root workspace support

Now Pylance is available in the VS Code Marketplace, already nearing 4,000 downloads at press time.

It's now available as an option to the preceding language server, but the team plans on eventually deprecating and removing the latter as an option.

"Pylance represents a drastic improvement for the Python experience in Visual Studio Code, to which our team has dedicated months of work. The new, free language server offers increased performance and many more features. Because of that, our team's focus will shift to Pylance to continue evolving it," Ostrowski said.

Although Microsoft over the years has morphed into an open source champion, Ostrowski said there are no plans to make Pylance open source, in reply to a developer question. However, it does have its own GitHub repo for providing feedback and documentation, which states: "The Pylance codebase is not open-source but you can contribute to Pyright to make improvements to the core typing engine that powers the Pylance experience."

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

Subscribe on YouTube