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


  • 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.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube