Jupyter安装lsp服务
jupyter环境下,安装lsp服务,利于coding。
-
jupyter环境下,启用插件功能。
-
搜索lsp插件,启用前,首先安装lsp插件服务,
conda install -c conda-forge jupyterlab-lsp
,随后开启lsp插件。 -
启用插件服务后,需要安装nodejs服务,
conda install -c conda-forge nodejs
。 -
需要安装server,
conda install -c conda-forge python-lsp-server r-languageserver
。 -
重启jupyter即可。
tips:
相同的操作,在Windows下,Python和R都可以正常使用lsp,但是ubuntu环境下,R无法使用lsp。
仔细思考了下操作上的区别,Windows下,是首先把python和R都安装完成后,才去安装的lsp。ubuntu下,是安装完python,没有安装R,就去安装lsp。其后,又安装R,R无法调用lsp成功。
综合考虑,下次在ubuntu上可以尝试,首先安装好Python和R,再安装lsp,是否能够同时调用lsp。
参考链接:
https://github.com/jupyter-lsp/jupyterlab-lsp