Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode Intellisense Not Working In Jupyter Notebook Extension(MacOS)

I have an issue with VS Code which I recently installed in my MacOS BigSur. I tried out the Jupyter Notebook extension and in their documentation it says that they have full intellisense support for this extension as well.

Intellisense in Jupyter Notebook in VSCode works well for completing variables, functions,methods,etc....

The only issue I have is that I am not able to get the arguments/parameter information, though it is working fine with the python extension of VSCode

I tried out things like Shift+TAB...which works in JupyterNotebooks(not the VS Code version).

Is this a bug that I am facing...or is it just like that. Can you also please suggest as to how to make this work.

like image 953
PalanikannanM Avatar asked Dec 01 '20 20:12

PalanikannanM


People also ask

How do I get IntelliSense code in Visual Studio for Mac?

By default the shortcut to trigger intellisense on VS Code (for mac) is ⌃ – Control + Space .

How do I enable IntelliSense on Jupyter Notebook?

Access the Jupyter Menu You have auto-complete in Jupyter notebooks like you have in any other Jupyter environment. Simply hit the “Tab” key while writing code. This will open a menu with suggestions. Hit “Enter” to choose the suggestion.

Why is VS Code not working IntelliSense?

If IntelliSense is not working as it should on your Windows 11/10 PC, you can try restarting VS Code and this should solve the issue. Restarting the program can be really effective and time saving in some cases. If the issue persists, you can try restarting your computer altogether.

Does Jupyter Notebook support IntelliSense?

IntelliSense support in the Jupyter Notebook Editor#The Python Jupyter Notebook Editor window has full IntelliSense – code completions, member lists, quick info for methods, and parameter hints. You can be just as productive typing in the Notebook Editor window as you are in the code editor.


1 Answers

Edit May 12, 2021: With the Pylance language server (now the default), I now get parameters and type hints.

According to this issue on GitHub, the arg/param info is not supported on stable VS Code. It looks like you need to use the "Native Notebook" in VS Code Insiders (the beta) and use the "Pylance" language server Extension.

I haven't tried this solution myself (not sure I want to install Insiders), but just changing the language server to "Pylance" at least gives you signatures.

like image 185
theKoozie Avatar answered Oct 14 '22 19:10

theKoozie