Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter hints not working (Python) #3333

Closed
imanimufti opened this issue Jan 5, 2020 · 5 comments
Closed

Parameter hints not working (Python) #3333

imanimufti opened this issue Jan 5, 2020 · 5 comments

Comments

@imanimufti
Copy link

imanimufti commented Jan 5, 2020

I can't see the parameter hints in VS Code. Ctrl + Shift + Space does nothing.

In addition I also have this error
Jupyter kernel cannot be started from 'Python 3.8.1 32-bit'. Using closest match Python 3.7.4 64-bit ('base': conda) instead. Error starting original kernel: Error: Module 'notebook' not installed.

Everything works fine and I can run code. But I can't trigger parameter hints or use the intellisense feature when running code in a python script format. When I use the jupyter notebook cells format, the intellisense feature works but the paramter hints still dont work.

I've tried everything in all the other threads similar to this. Someone please help me. I've been stuck on this for two days now. I'm new to VS Code.

@imanimufti imanimufti changed the title Parameter Hints Issue : Python Parameter hints not working Jan 5, 2020
@imanimufti imanimufti changed the title Parameter hints not working Parameter hints not working (Python) Jan 5, 2020
@greazer
Copy link
Member

greazer commented Jan 7, 2020

Hi @imanimufti, sorry for the trouble you're having! To help narrow down the situation you find yourself in, can you let us know whether you don't get intellisense before running code in the interactive window?

Also, does the same problem occur for a very simple, but separate, project like:

import os
print(os.

Where on pressing '.' after "os" you get nothing?

Also, let us know the state of the "Python: Jedi Enabled" setting in VS Code. If it's checked, try unchecking to see if your problem is resolved. Eventually, this setting WILL be unchecked by default in the Python extension so keeping it unchecked all the time, is ok.

@gregvanl
Copy link

Closing as no response from user.

@carlschmidt26
Copy link

carlschmidt26 commented Dec 30, 2020

Just in case somybody comes across this issue.
I had a similar problem (no parameter hints in Jupyter notebooks) and it seems that some methods are supported with default settings (e.g. np.sum) while others are not (e.g. np.exp or np.array).

What worked for me was adding "python.languageServer": "Pylance", in settings.json.
Source: https://stackoverflow.com/questions/64680361/vscode-autocompletion-doesnt-work-for-jupyter-notebook

@wconnell
Copy link

wconnell commented Apr 15, 2021

I am having this issue. Intellisense pops up for e.g. numpy methods - no parameter hints though.

Looks like this is being worked on here?

@namespace-Pt
Copy link

@wconnell how do you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants