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 at Converge 360.

comments powered by Disqus

Featured

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

  • Copilot Agentic AI Dev Environment Opens Up to All

    Microsoft removed waitlist restrictions for some of its most advanced GenAI tech, Copilot Workspace, recently made available as a technical preview.

Subscribe on YouTube