Add zubanls as optional static inference completion backend#15143
Draft
Add zubanls as optional static inference completion backend#15143
Conversation
Co-authored-by: Carreau <335567+Carreau@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for Zuban Language Server in IPython
Add zubanls as optional static inference completion backend
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
zubanlsas an optional alternative to Jedi for static type inference completions in IPython's tab completer. Jedi remains the default and takes precedence when enabled.Changes
completer.py):ZUBANLS_INSTALLEDflag set viatry/import zubanlsblock, mirroring the Jedi detection pattern.Completer.use_zubanls):Bool, defaults toFalse, tagged configurable. No-op ifuse_jedi=True.IPCompleter._zubanls_matcher/_zubanls_matches): Context matcher callingzubanls.complete(source=text, position=offset), adapting results toSimpleCompletion. Exceptions caught gracefully; debug mode prints(ExceptionType: message).matchersproperty: Addedelif use_zubanls and ZUBANLS_INSTALLEDbranch — same matcher list structure as the Jedi branch but with_zubanls_matcher.all_completions: Prefix join now triggers onuse_jedi or use_zubanls.UserWarningemitted inIPCompleter.__init__ifuse_zubanls=Truebut package is absent.whatsnew/version9.rst.Usage
Or:
Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.