-
Notifications
You must be signed in to change notification settings - Fork 293
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
Docstring do not appear when editing cell #5415
Comments
@Syndorik Sorry can I ask for a bit of a clarification here. By DocString do you mean the function hover like so? However language features (like DocStrings) do rely not just on the Jupyter extension, but on the Python extension and the currently selected language server. Your Python extension does look like it's possibly a bit out of date could you try updating that and reproing? Also, what language server do you have selected in the Python extension? |
@IanMatthewHuff Of course. I'm indeed speaking of the function hover, getting everything from the documentation. When the function that I'm calling is inside the same import, I can access the documentation as expected However when it's not inside the same cell: I actually tried this setup in two different computers with two installs. I also tried with a remote jupyter server and a local one. Whatever I do I keep having this issue. I'm currently using the 2021.3.680753044 extension for python, that's the last release I can download. And I'm using Jedi as language server. I tried Pylance, but it did not work either |
I got same even worse issue. Pylance autocomplete doesn't work. It works like jupyter autocomplete. Even if I import library and run in the the same cell , still nor at the end of typing pop-up documentation neither hover pop-up documentation works.
I had opened #4218 topic 4 months ago, unfortunately it still has not been solved. Now I got stuck in older VSCode version 1.51 which has some strange bugs either. |
@Syndorik and @canersnli I see that you are both on insiders. Did this issue just hit? VS Code insiders just had a breaking change (yesterday I believe) that change requires an update to the insiders version of the python extension which is currently in progress here: microsoft/vscode-python#15884 (review) I'm guessing that this is not @Syndorik 's issue as they are seeing some hover documentation, just not when the import is in a different cell. |
@Syndorik can you switch to the insiders version for python? It's a setting you have to change. Once it downloads and you reload VS code this issue should go away. |
Woow, everything works like a charm now, thx @rchiodo I am switching from VS Code to insiders now, hope future updates don't create same issue again. |
Updating my version of code-insiders did it for me too! That's awesome, thanks! |
Thanks for checking :) |
Unfortunately it seems like I am having the same issue. Only ctrl+shift+space shows the documentation in .ipynb files and not hover. In normal .py files documentation on hover works. For normal VS Code the problem is even bigger, not even ctrl+shift+space works for .ipynb. Documentation works normally for .py as well. @rchiodo Any ideas? |
@floriandonhauser does autocomplete work? Do you see any red squiggles anywhere? There are some problems with inserting new cells messing up intellisense. Additionally the interpreter set for the workspace (and not the kernel) is used to determine the set of packages that the language server understands. This might be the cause of the problem too. On top of that, Pylance seems to work better than Jedi. Are you using Jedi or Pylance? |
Installing Pylance fixed it for me, thank you a lot! |
Environment data
Actual behaviour
Docstring do not appear when editing a cell. However inside the import cell, docstring appears.
For instance if I have two cells like:
and
Docstring won't appear
However if I have:
Then it appears
The text was updated successfully, but these errors were encountered: