Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

SageMath support in Jedi (hence in jedi-vim)

I want to make jedi (autocompletion, static analysis and refactoring library for python) to understand Sage code. I want to integrate it with vim via jedi-vim but there are plenty of other editors\IDEs with support of jedi

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!

But I cannot figure out what should I do to make it work.

P.S. It seems that there are some successes on the subject with different approaches: PyCharm (windows) and Vscode.