Thursday, 26 August 2021

Make Jedi to load some specific library from unusual place (SageMath for example)

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?



from Make Jedi to load some specific library from unusual place (SageMath for example)

No comments:

Post a Comment