python-3.xvisual-studio-codedocstring

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!


Solution

  • 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