简体   繁体   中英

VSCODE JUPYTER - How to display SAME AUTOCOMPLETION in notebooks (.ipynb) as it is in python (.py) from VSCode?

I am using Jupyter Notebook inside VSCODE and was happy with it untill I found out this issue.

The autocompletion seems not to be working well inside Notebooks compare to regular Python script as shown on the image below.

If someone already faced this problem or have any ideas, any info will be welcomed. Thanks

在此处输入图像描述

I guess you've not installed ipykernel package. You can install it like that

pip install ipykernel

Please try to install the extension "Pylance" in VS Code and use the language service provided by "Pylance": use it in the " settings.json " of VS Code:

"python.languageServer": "Pylance",

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM