Python Spyder 缺少对象检查器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40645942/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Spyder missing Object Inspector
提问by Soldalma
I just installed Anaconda and running Spyder I cannot find the Object Inspector. Hitting Ctrl+I has no effect and in the View/Panes menu there is no item Object Inspector.
我刚刚安装了 Anaconda 并运行了 Spyder 我找不到对象检查器。按 Ctrl+I 无效,并且在视图/窗格菜单中没有项目对象检查器。
I have seen videos and tutorials that show the Object Inspector. What is happening?
我看过展示对象检查器的视频和教程。怎么了?
回答by Jitse Niesen
The "Object Inspector" is now called "Help" (from Spyder version 3.0 onwards); see https://groups.google.com/forum/#!topic/spyderlib/pF7KmSKDFXc. However, the Ctrl-I shortcut has not been changed, so I'm not sure what's happening with that.
“对象检查器”现在称为“帮助”(从 Spyder 3.0 版开始);请参阅https://groups.google.com/forum/#!topic/spyderlib/pF7KmSKDFXc。但是,Ctrl-I 快捷方式没有改变,所以我不确定发生了什么。
回答by Ibrahem Negm
go to preferences > Help and enable the Automatic connections for Editor and restart the Spyder
转到首选项 > 帮助并启用编辑器的自动连接并重新启动 Spyder
This worked for me!!
这对我有用!!
回答by Shubham Banerjee
Although it's given in the tutorials but I'll explain.
虽然它在教程中给出,但我会解释。
1) Object Inspector is now known as Help.
1) 对象检查器现在称为帮助。
2) I'm using Spyder 3.6, here go to Tools-->Preferences-->Help-->Check on Editor in Automatic Connections
2)我使用的是Spyder 3.6,这里去工具-->首选项-->帮助-->检查自动连接中的编辑器
3) Select your parameter and Ctrl+I
3) 选择您的参数和Ctrl+I
That'll do it.
这样就可以了。
回答by bwsshields
I had the same problem. I found the help and then discovered that I got a message saying No Documentation. I tried changing the setting from Rich Text to Plain Text and for some reason that worked and I'm able to use the Object Inspector.
我有同样的问题。我找到了帮助,然后发现我收到一条消息,说没有文档。我尝试将设置从富文本更改为纯文本,出于某种原因,我可以使用对象检查器。
回答by Xavier del Pozo
Since they changed "Object Inspector" to "Help", as Jitse Niesen says, they might have changed the shortcut too. In my Mac version the shortcut for "Help" is Shift+Cmd+H so the combination you are looking for is probably Ctrl+H.
由于他们将“Object Inspector”更改为“Help”,正如 Jitse Niesen 所说,他们可能也更改了快捷方式。在我的 Mac 版本中,“帮助”的快捷方式是 Shift+Cmd+H,因此您要查找的组合可能是 Ctrl+H。
回答by Lionel Yu
On mac using Spyder 3.3.1 run from Anaconda.
在 Mac 上使用 Spyder 3.3.1 从 Anaconda 运行。
Cmd + I
was not working for me at first to show the object inspector on the right pane for help on a particular function. So I typed in Cmd + ,
(which is to access preferences panel in any app on Mac), and went down to "Help" on the left side.
Cmd + I
起初不适合我在右侧窗格中显示对象检查器以获取有关特定功能的帮助。所以我输入Cmd + ,
(这是访问 Mac 上任何应用程序中的首选项面板),然后转到左侧的“帮助”。
Then, I checked the boxes for "Editor" and "IPython Console" under the description that says "This pane can automatically show an object's help information after a left parenthesis is written next to it. Below you can decide to which plugin you want to connect it to turn on this feature."
然后,我选中了“编辑器”和“IPython 控制台”框,说明“此窗格可以在其旁边写上左括号后自动显示对象的帮助信息。您可以在下面决定要使用哪个插件连接它以打开此功能。”
After checking these boxes and pressing OK, Cmd + I
still did not work for getting the object information.
选中这些框并按 OK 后,Cmd + I
仍然无法获取对象信息。
I restarted Spyder, closing it and reopening it from Anaconda navigator.
我重新启动了 Spyder,关闭它并从 Anaconda 导航器重新打开它。
Now Cmd + I
works and shows the information for whatever function I click on.
现在Cmd + I
可以工作并显示我单击的任何功能的信息。
Hope this helps someone. I'm still not quite sure what happened here (since those checkboxes were for the left parenthesis function), but I still thought that sharing the steps will be useful to some people.
希望这可以帮助某人。我仍然不太确定这里发生了什么(因为那些复选框用于左括号函数),但我仍然认为共享这些步骤对某些人有用。
回答by Gauravjit
After pressing Ctrl+H, a help window will come in that in [Source] dropdown select Console
按Ctrl+ 后H,将出现一个帮助窗口,在 [Source] 下拉列表中选择 Console
回答by Ravi Naidu
In Windows, Ctrl+Shift+Hworked after making changes to preferences as suggested by Ibrahem
在Windows中,Ctrl+ Shift+H通过Ibrahem的建议进行更改的偏好后工作
回答by Mannan
Go to preferences->Help and tick the option of showing object info on Editor , then ctrl+I will work with any object
转到首选项->帮助并勾选在 Editor 上显示对象信息的选项,然后 ctrl+I 将处理任何对象
回答by Bede Ngaruko
One way to go about this is to go to View > Panes > Online Help. Then in the search box insert the module or package like so (sklearn.preprocessing.Imputer
) and you will have all the docs related to the package.(**Shortest way: click on package....then Cmd + i )
解决此问题的一种方法是转到“查看”>“窗格”>“联机帮助”。然后在搜索框中插入模块或包,像这样(sklearn.preprocessing.Imputer
),你将拥有与包相关的所有文档。(**最短方式:点击包....然后 Cmd + i )
Alternatively, right clicking the Object in the editor, select Go to Definition
或者,右键单击编辑器中的对象,选择 Go to Definition
Third way, in your console, type help(your class here)
like help(
Imputer) or just help() to get the interactive console then type your package there (
sklearn.preprocessing.Imputer`).
第三种方式,在您的控制台中,输入help(your class here)
类似help(
Imputer ) or just help() to get the interactive console then type your package there (
sklearn.preprocessing.Imputer`)。
Hope this help someone.
希望这有助于某人。