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-lsp
using conda commands. But nothing happened after the installation. - After some time spent searching online, then I realized that
python-lsp-server
was 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.