jupyterlab-lsp是jupyterlab的自動代碼補全插件,其實你也可以選擇kite,但是我的伺服器系統是centos,而kite不支援該系統,是以我隻能選擇lsp(老色痞)了。
我找了網上賊多的教程,隻是告訴我在jupyterlab的插件裡找到jupyterlab-lsp之後點選install就完事了,結果啥反應沒有。。。

- 假設你已經安裝了jupyterlab了,那麼第一步是安裝server extension
pip install --pre jupyter-lsp
- 之後安裝frontend extension
jupyter labextension install @krassowski/jupyterlab-lsp
- 給指定變成語言安裝LSP server
pip install python-language-server[python]
最後啟動jupyterlab并建立一個ipynb檔案
jupyter-lab --port 6666
如果左下角顯示這個說明你安裝且運作成功了