Tags: sage
I have been wondering how to write .sage
files in vscode
with proper lint and highlighting since half a year ago.
There is a question asked in 2023 on stackoverflow. https://stackoverflow.com/questions/76201511/add-sagemath-to-pylance

But what is the interpreter path for python used by sage?
It turns out that you can just type sage --python
… and
everything works


A large part of sage is written in cython, so pylance still works bad on this. It would be nice if someone can write a language server for sage.