I want to make jedi (autocompletion, static analysis and refactoring library for python) to understand SageMath code (which is basically Python code with some minor additions and it is preparsing to Python). I want to integrate it with vim via jedi-vim.
There is a discussion with some evidence of possibility of that combo:
Well, I wound up figuring this out. I just had to turn the problem around and include the sage path in the normal python path (export PYTHONPATH=/usr/lib/sagemath/src) - not switch the Jedi interpreter to be the sage interpreter. Seems to work well now. Thanks for the response!
The question is: what should I do to force jedi to have in mind SageMath library?
UPD The idea is to have LSP-like support for Sage as we have for Python. May be jedi-vim isn't best option and jedi-language-server is. One of the reasons is that having LSP is editor-agnostic solution.
The Language Server protocol is used between a tool (the client) and a language smartness provider (the server) to integrate features like auto complete, go to definition, find all references and alike into the tool
There are a lot of editors (almost any famous) and IDE with support of that kind of language servers.
So reformulated question is: are there some adaptations of that solutions to SageMath (which is heavily based on Python and translated to Python)?