Spyder: No further documentation available..

Created on 10 Apr 2020  路  21Comments  路  Source: spyder-ide/spyder

Spyder - Python 3.7

Moving with the mouse over any library or code and pressing ctrl+i return is "no further documentation available"

Capture1

Expected Result:

Capture2

Awaiting Followup

Most helpful comment

@dalthviz alright, no problem. Was just a curiosity question. Thanks again for the great help here! I appreciate and love the docs feature btw!

All 21 comments

That means that it can't be retrieved from the editor, sorry.

That means that it can't be retrieved from the editor, sorry.

Hmm, why does it work then for the instrcutor?

@dalthviz, please take a look at this one.

Hi @Ochitsuku could you please provide the version of Spyder that you guys are using? You can check it in the Help > About Spyder... menu.

Also, seems like you are using Kite (which should be able to get the docs of the Imputer class). Could you run Spyder from the Anaconda Prompt with spyder --debug-info verbose and post here the generated log please, and also check if the Kite Copilot show any message regarding the connection with Spyder? Any new info to understand and reproduce this is greatly appreciated :)

Note: Testing with only the LSP and Spyder 4.1.2 I'm unable to get help docs for the Imputer class, although I can get help for the sklearn and sklearn.preprocessing:

help

@dalthviz Im using spyder via anaconda and its the 4.0.1 Version.

Note: Testing with only the LSP and Spyder 4.1.2 I'm unable to get help docs for the Imputer class, although I can get help for the sklearn and sklearn.preprocessing

@dalthviz, could you review if this a problem with Jedi or the PyLS?

@dalthviz Im using spyder via anaconda and its the 4.0.1 Version.

@Ochitsuku please update to Spyder 4.1.2 to check if that allows you to get documentation (while having Kite enabled).

@dalthviz, could you review if this a problem with Jedi or the PyLS?

@ccordoba12 seems like that麓s the case (tested with Jedi 0.15.2):

  • Empty definitions for Imputer:

image

  • A definition is retrieved for sklearn:

image

Ok, thanks @dalthviz! Please try with Jedi 0.17 to see if that version can retrieve a definition.

@ccordoba12 testing with Jedi 0.17.0 (master) it doesn't work either:

image

Ok, thanks @dalthviz.

@Ochitsuku, it seems newer versions of the libraries we use to extract documentation are unable to do that for Imputer. So unless you install and use Kite, there's nothing we can do about this, sorry.

@dalthviz as I am using anaconda, I am unable as far my awareness goes to update to the 4.1 version. As anaconda has not released that yet

@Ochitsuku I think Spyder 4.1.2 is already available through Anaconda. Could you try to update using conda install spyder=4.1.2 ?

@Ochitsuku, if that doesn't work or it gives an error, you need to run first

conda update anaconda

Unfortunately I am getting an unexpected error when trying to do that. @dalthviz

@ccordoba12 @dalthviz thanks this works now with the imputer class. Is it also supposed to provide information with for example import? As this doesn't give a response.

I think you don't get docs for stuff like import but I'm not totally sure @Ochitsuku

Edit: Probably in this category of elements also enters stuff like def, class, from, etc.

@dalthviz alright, no problem. Was just a curiosity question. Thanks again for the great help here! I appreciate and love the docs feature btw!

I just did the conda update anaconda and it's Spyder 4.1.3 now.
It still show 'No further documentation available' when CTRL +I on the editor

Hi @liweiyiw as described in the comment above for some objects (including Imputer but probably no limiting just to it) the libraries that we use don't provide further documentation. For the moment, you could try installing Kite to check if Spyder is able to show further documentation :)

New in version 0.20: SimpleImputer replaces the previous sklearn.preprocessing.Imputer estimator which is now removed.

Imputer is deprecated.
Try this: from sklearn.impute import SimpleImputer
References:

  1. https://scikit-learn.org/0.21/modules/generated/sklearn.preprocessing.Imputer.html
  2. https://scikit-learn.org/stable/modules/generated/sklearn.impute.SimpleImputer.html
Was this page helpful?
0 / 5 - 0 ratings