I’ve recently transitioned from using VSCode on my PC to JupyterLab on a Mac for my Python learning. Two lessons have been learned from this transition.
Firstly, JupyterLab comes in two forms: a standalone application and a browser-based version. For the application, you can use Homebrew to search and install it. If you prefer the browser version, simply use the command conda install jupyterlab.
The second lesson was about enabling autocompletion in Jupyter:
- I started with installing
jupyter-lspusing conda commands. But nothing happened after the installation. - After some time spent searching online, then I realized that
python-lsp-serverwas missing.
But the story didn’t end there. I then had to figure out the tricky part with the settings:
- There are two "Code Completion" tabs in the settings editor.
- In one tab, you need to enable "Continuous Hinting," and in the other, turn on "Autocompletion."
May these lessons be helpful to those who are looking for answers.
本文仅代表作者个人观点,不代表作者所在单位立场。内容仅供医学教育参考,不构成诊疗建议;具体诊疗请咨询专业医生。详见免责声明。