Jupyter Code Autocompletion
By default, after installing Jupyter, code suggestions and autocompletion are not available. You can enable this feature in the Jupyter
environment by installing the following plugins:
pip install jupyterlab-lsp python-lsp-server
The code suggestion effect is shown in the following image:
After installation, basic code suggestions will be enabled. If you need more advanced features, you can replace the above python-lsp-server
with python-lsp-server[all]
,
pip install jupyterlab-lsp python-lsp-server[all]
After installation, it will include the following additional features:
- flake8 (code static analysis)
- mypy (static type checking)
- pylint (code quality tool)
- rope (refactoring support)
If you are not familiar with the functions in the above list, it is recommended to install only the basic code suggestion feature.