-
-
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
Help needed to make a plugin work for spyder 6.* #23013
Comments
Hi @gepcel thank you for reaching out and sorry for the late response! Indeed there are some changes minimum that a plugin needs to do to be able to launch with Spyder 6 (as example of changes required you could check some PRs for external plugins like spyder-ide/spyder-line-profiler#87). Besides that, changes where done to the Editor so maybe that could be causing some troubles for your plugin too 🤔 I'm not totally sure what the specific problem could be for you plugin but if you can share a traceback or something similar maybe we could be able to at least point you into the right track for a fix. To get such a traceback maybe you will need to launch Spyder in debug mode. So from a terminal/cmd launch Spyder with the Let us know if the info above helps/you have more debug information from your plugin! |
Thanks.
|
Updates: Now the plugin appears in statusbar and can appear in toolbar. The func works by clicking either the statusbar or toolbar. The plugin appears in |
@dalthviz Hi, sorry to bother. I appreciate some help here. After trying fixing and some imitating, the plugin partially works. Now by clicking either the statusbar or the toolbar, the plugin works. But I registered an entry into The shortcut registering code was mainly 7 lines. Would you mind take a look what I'm doing wrong? |
Thinking about this a little bit more, maybe this is not related with #23024 and what is needed is passing to the action creation method something like |
Passing |
@gepcel, do you want your shortcut to work globally, i.e. when pressed anywhere in Spyder? Or only when a specific plugin has focus, e.g. the Editor? |
The shortcut only need to work when the Editor has focus. |
I have made a plugin for spyder, which I’ve been using in spyder 5.* for years. I need help to make it work for spyder 6.*.
I’m not a programmer nor expert, I don’t know how to debug a plugin (I wrote scripts to process data usually). I’m hoping someone can point out what’s wrong, or some instruction or guidance I can follow. I’ve tried to start Spyder from the command line, and no useful message.
Plugin url: https://github.com/gepcel/ihelper
What’s plugin for?
There’s a useful function of spyder called “inspect current object”, which works differently for editor and ipython console. Sometimes, with a function or object, after
Ctrl + I
, I can’t get help information from editor, but can from ipython console. So I often need to copy some code to ipython console to get a help information, and go back to editor to work on. As a data scientist, I need this quite often.So what this plugin mainly does is to find out the current object in editor and request help from
help pane
, pretend it’s a request from ipython console. And regist this to spyder plugin , add an entry to keyboard shortcut, and show in status bar.The text was updated successfully, but these errors were encountered: