-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Automatic Help/Documentation with Ctrl+I is broken in the Editor #5393
Comments
This should be working as expected. @dalthviz, can you reproduce this one? |
@ccordoba12 I tried and it works for me: @joshburnett could you try to reset the Spyder preferences for keyboard shortcuts and see if that helps? |
Resetting the keyboard shortcuts didn't work. Deleting my ~/.spyder-py3 directory and restarting Spyder did fix the problem. Thanks. |
Technically, I just renamed the preferences directory, so I still have the offending one, if anyone wants to do any further digging. I don't think that I had gone in and made any changes to that directory, so I'm not sure how the problem got in there. Just noting this, in case the problem pops up for anyone else. Hopefully there is not a problem with Spyder that corrupts some part of the preferences. |
Thanks @joshburnett for your feedback and providing a way to fix this 👍 |
@joshburnett, that would be really useful. Could you upload a zipped version of your settings somewhere so we can take a look at them? Thanks! |
Sure. You can get the file here. |
I have a similar problem, but deleting the folder with the Spyder settings don't fix the problem in my case. Nothing does besides of falling back to the version 3.1.3 (and maybe below). Anything above results in a malfunction. |
I started having the problem again, and deleting my preferences folder did not solve the problem. I just did a complete uninstall, reboot, and re-install of Anaconda 5.0.0, and Spyder has the problem out of the box. I did not install anything else in the process. |
I don't know if it just takes a little while for some of the relevant source code to be parsed for the first time, but when I went back immediately after submitting this, Ctrl+I worked. To test this, I then pulled up some code that I hadn't looked at yet since reinstalling Anaconda and tried to pull up the Help for seaborn.boxplot(), and it initially didn't work. I tried again maybe 10 seconds later, and it worked. To be clear, this is not the behavior I was seeing before I did the total reinstall. I was trying to pull up the Help for the same functions, which I routinely use, and it wasn't working, ever. Additionally, tab completion in the Editor wasn't working, and the 'Go to definition' feature was also not working. You can see why I resorted to a total reinstall. I'll keep using Spyder and checking this feature as I make my typical preference changes. Hopefully I'll be able to track down when (if) this feature stops working. It's been quite frustrating, as it's such a helpful feature when it works. |
Hi All, I'm having the same issue. Tried with the newest Spyder version and also dating back to a few previous versions, same problem. What I noticed is however, that it only happens with the rich text version of the help, the plain text works with the editor too. Does anyone have a solution already? |
Exact same problem. I'm on mac os X 10.13.3, installed spyder through anaconda navigator 1.6.x (x is now 12 and I believe the install was made on something like 1.6.9, if that matters) and I also made the update (via graphical window) to spyder 3.2.4 just today (right after anaconda). |
I have the same problem with Spyder 3.3.0 and Anaconda 1.8.7. A restart of Spyder fixes the problem for some minutes but after some time the help doesn't work from editor, only from console. |
Did you try the usual fixes (e.g.
If you're really using a version of Anaconda that old you should upgrade, since the current version is 5.2.0 at last check. Most likely you are referring to your |
Same problem. Sometimes it works, sometimes it doesn't. The problem could be rich text, I can see the document if I turn rich text off. |
The current Spyder version is 3.3.1; 3.2.6 is nearly a year old by now. It might or might not fix the problem, but it certainly won't hurt, and it also greatly improves your ability to select any Python environment (Anaconda or otherwise) installed on your machine to work in while keeping your dedicated Spyder environment pristine and free of the sorts of dependency issues that are nearly always the ultimat cause of this problem. You can install it into a clean environment with If you're working in |
Hello, I'm having the same problem (Help works with console but not editor) with Spyder 3.3.1 with Python 2.7.15 on Windows 10. I'm using the Anaconda distro. |
@sudo-robot-destroy Did you try the same solutions? |
@CAM-Gerlach I re-read the thread to make sure, but it sounds like there isn't a solution yet. Maybe I missed it, is there something I should try? |
@sudo-robot-destroy The ultimate solution is replacing our current completion and introspection infrastructure with a much more robust and less bespoke one, using the same Language Server Protocol architecture as used by e.g. Atom and VSCode. This is already implemented in our development codebase for Spyder 4, although stabilization and testing is ongoing to make it much more reliable; we expect to release Beta 2 with it implemented in early December. For now, try the things I suggest previously (remove |
Potential fix. |
Thanks Douglas-Putnam - this worked for me today
|
hey is the correct...
|
To everybody following this issue: Kite is a free plugin for several IDEs and editors that uses machine learning to provide better code completions for Python. We are planning to add support for Kite in Spyder, but before proceeding we'd like to know your opinion about it. Please help us with that by filling the following poll: https://www.quiz-maker.com/poll2385657x93274cD6-68 Note: This doesn't mean that if we do that integration, code completions will only work through Kite. Spyder will give the completions provided by Kite along with the ones from other open source libraries, like Jedi and Rope. |
same problem |
This seems to be a fix, worked for me. |
From ~/.spyder-py3/ folder, I've just removed onlinehelp file and restarted spyder, that's it. |
I think best semi-solution for this problem |
Same Issue here, none of th suggested solutions worked for me :( |
@dian-ai So you are using Spyder 4.x? What specifically is the issue you experience? Does Help work for only some objects, but not others? Did you try closing and re-opening Spyder? |
@dian-ai Spyder v5 released it solves so well all problems. |
@CAM-Gerlach yes I am using spyder 4, my help does not work. I have only help for numpy, the rest there is 'No documentation Available' |
It doesn't work for depreciated libraries. |
Which libraries would that be? In any case, there's a reason they are deprecated; you should be using their modern alternatives in your current development. |
@CAM-Gerlach I faced this issue with Imputer class from sklearn.preprocessing. CTRL+I doesn't work for Imputer unless selected. Works for SimpleInputer from sklearn.impute. |
@shambhaviparashar If its not working only for specific classes in the Editor, then it has to do with either the documentation/structure of the package itself or the limitations of the libraries that find and extract the documentation, neither of which Spyder has any real control over, sorry. It should still work in the Console or typing in the name manually, so long as the object actually has documentation to begin with. Best of luck. |
I tried (Ctrl+Shift+Space) in the Editor, then it can work now |
Just one thing to make it clear, if anything is running in spyder like, You may be training thousands of images to an algorithm or somehow spyder is busy, in this case also it won't documentation for a while until spyder is free and no overhead to it. |
open spyder > tools > install kite engine. > |
No, this issue still exists in Spyder 4. I just had this issue and when used the fix cited here using Ctrl+Shift+D, the issue is fixed. You need to look into this issue and fix it permanently. Users who do not see this fix will have tough time using Help. |
No, I have Kite installed but still it did not work. See my earlier comment to fix this issue. |
Same here |
I just installed ver 4.2.1, and was following the tutorial. Defined function hello, and then asked for help: help(hello). Got following error help( hello ) File "", line 1, in NameError: name 'help' is not defined |
@StephanAKoehler, you need to run your code first and the call |
Also, note that |
thanks ccordoba12 and CAM-Gerlach. I also imported builtins, but it doesn't have a help function. Another thing works is |
Given my testing confirms that While it doesn't seem to have anything to do with Spyder, it would be helpful if you wouldn't mind letting us know the output of |
So I have the same issue with 5.4.2 release. Sometimes I get a warning about a crash of Sphinx 5.3.0 (asks for jsmath so I installed manually the library package but the issue is still there) also if I am using the plain text version. Also the placeholder message is not easy to understand is Ctrl+i or Ctrl+shift+i (as the |
You shouldn't need to worry about it. It's there mostly to show where the documentation is being retrieved from and it's automatically changed when you press
This could be the cause of your problem. But please open a new issue about it and don't forget to mention for what specific objects our Help pane is not working.
If the shortcut were |
Pressing Control+I does not bring up any documentation from the Editor
What steps will reproduce the problem?
I tried the following code in the Editor:
Hitting Ctrl+I with my cursor in the
list
orplt.figure()
calls didn't bring up the documentation.Typing
list
in the iPython console and hitting Ctrl+I works properly, it's just the Editor that has the issue.What is the expected output? What do you see instead?
The Help pane should show the documentation associated with the variable that the cursor is in, such as matplotlib.pyplot.figure, in the example above.
Rather than showing the documentation, the Help pane goes blank (so we do see that some sort of action was triggered).
Please provide any additional information below
I have used this feature before, but it stopped working a few point releases ago.
To test this and be sure I hadn't screwed anything up in my setup, I created a new conda environment with spyder in it via:
Then I activated the new environment and launched spyder.
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: