Jedi-vim: SAGE math with Jedi-Vim

Created on 20 Mar 2014  路  3Comments  路  Source: davidhalter/jedi-vim

Is there a way to use a different-than-default interpreter with Jedi-Vim? Currently, none of the sage libraries auto-complete and are not able to be loaded into the normal python interpreter (intended to use the sage -python interpreter.)

Most helpful comment

@soulcmdc, could you please make some instruction on how to use jedi-vim to autocomplete build-in sage functions?

All 3 comments

Well Jedi works pretty well with pypy. It probably does as well with sage, but I've never tried. Jedi-vim doesn't, because it uses the python scripting interface which is a part of VIM.
I doubt you could use it. However, you could probably try to write some Server/Client System just for sage and run an external sage process.

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!

@soulcmdc, could you please make some instruction on how to use jedi-vim to autocomplete build-in sage functions?

Was this page helpful?
0 / 5 - 0 ratings