agftrading
agftrading

Reputation: 884

Why does the function definition and docstring show twice when I hover over the function in VS Code? How to resolve to showing once?

On hovering the mouse pointer over a function, whether inbuilt or custom, the definition and docstring of the function shows as expected, however it shows twice. I have had a search for what might be causing this and looked around my settings, but have yet to find a reason for it. If it makes a difference, am using Python on VSCode.

Perhaps someone knows what might be causing this and how to resolve? I have not attached any images, since I think the issue is quite clear, but happy to provide if needed for clarification.

Thanks!

Upvotes: 3

Views: 768

Answers (2)

Ulf Rompe
Ulf Rompe

Reputation: 929

Disabling the Jupyter extension seems to fix it for me.

Update: Enabling the Jupyter extension and setting this also does the trick:

"jupyter.pylanceHandlesNotebooks": false

Upvotes: 1

agftrading
agftrading

Reputation: 884

Not sure still what caused the issue, but disabling and then re-enabling the Pylance extension has solved this. Thanks.

Upvotes: 0

Related Questions