Using mspyls instead of pyls
On my computers, emacs often crashes with pyls. So now I'm trying mspyls. It seems python-language-server needs to be uninstalled.
% pip uninstall python-language-server
To let mspyls recognize a specific conda-env, python executable information is written in .dir-locals.el
as
((python-mode . ((lsp-python-ms-python-executable . "~/miniconda/envs/myenv/bin/python"))))
This file is put in the repository root of the developing code.