Pylance works with the existing Microsoft Python extension to bring faster type checking and program analysis to Python devs Credit: Thinkstock Microsoft has pulled back the drapes on Pylance, a Visual Studio Code extension for faster and more complete Python language support in that popular code editor. Pylance doesn’t replace the existing Microsoft-authored Python extension for Visual Studio Code, which has some 21 million installations to its name. Instead, Pylance expands on the existing Python extension to provide fast, static type checking (using Microsoft’s Pyright project), live type information about symbols, autocomplete, auto-imports, code outlining and navigation, and other tools for Python development. Pylance works with Jupyter notebooks, when those are in use in a project. It can also use custom type stubs from a project directory with the python.analysis.stubPaths option. It’s also possible for workspaces, users, or projects to customize which errors get flagged on a codebase and what level of severity to assign them. For instance, if you have a lot of code that creates variables conditionally, and which you know doesn’t create issues, you can disable the reportUnboundVariable option to avoid flagging such code. When the auto-imports feature is enabled, it automatically inserts appropriate imports for libraries recognized in Pylance’s search path. If you type gc.disable() for instance, Pylance will infer that you are referring to the gc module in the standard library, and automatically add import gc as needed at the top of your project. For the most part, Pylance should work as-is with existing projects, but it may need some special configuration in a couple of cases. For example, if Pylance flags imports in a project and claims they can’t be found, you may need to customize Pylance’s search path for the project by adding the python.analysis.extraPaths attribute in settings.json. Related content analysis Azure AI Foundry tools for changes in AI applications Microsoft’s launch of Azure AI Foundry at Ignite 2024 signals a welcome shift from chatbots to agents and to using AI for business process automation. By Simon Bisson Nov 20, 2024 7 mins Microsoft Azure Generative AI Development Tools news Microsoft rebrands Azure AI Studio to Azure AI Foundry The toolkit for building generative AI applications has been packaged with new updates to form the Azure AI Foundry service. By Anirban Ghoshal Nov 19, 2024 4 mins Microsoft Azure Generative AI Development Tools feature 14 great preprocessors for developers who love to code Sometimes it seems like the rules of programming are designed to make coding a chore. Here are 14 ways preprocessors can help make software development fun again. By Peter Wayner Nov 18, 2024 10 mins Development Tools Software Development news JetBrains IDEs ease debugging for Kubernetes apps Version 2024.3 updates to IntelliJ, PyCharm, WebStorm, and other JetBrains IDEs streamline remote debugging of Kubernetes microservices and much more. By Paul Krill Nov 14, 2024 3 mins Integrated Development Environments Java Python Resources Videos