Skip to content
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

Notify after runcell #55

Open
OverLordGoldDragon opened this issue Jun 22, 2021 · 6 comments
Open

Notify after runcell #55

OverLordGoldDragon opened this issue Jun 22, 2021 · 6 comments

Comments

@OverLordGoldDragon
Copy link

I often run commands that take 10-15 secs, or an unknown non-trivial time. I'd rather tab out and do something else while it executes, but also not longer than the execution, nor to have to check back constantly to see if execution finished.

The debugger will force focus on the Spyder application when running with a breakpoint; that's a bit too intrusive. Instead, I'd prefer there were some notification, like a sound effect, or the Spyder icon glowing orange, to indicate execution finished. Of course this can be optional via Preferences.

@steff456
Copy link
Member

Hi @OverLordGoldDragon,

Can you please give us a little more information about the feature request you are asking for? If you can upload some drafts it will help us to the discussion to see if we can work in this for Spyder 6 or a future release. Also, I'm going to transfer this to our ux improvements repo so we can have it present.

Thanks for reporting!

@steff456 steff456 transferred this issue from spyder-ide/spyder Jun 22, 2021
@OverLordGoldDragon
Copy link
Author

Sure. Suppose:

  1. I Ctrl + Enter to runcell some code
  2. It takes 20 secs to execute, maybe longer
  3. I tab away from Spyder while it's executing
  4. When the cell is done executing, Spyder issues a notification (e.g. icon glows, sound is played)

Example of icon glowing:

image

@steff456
Copy link
Member

Thanks for explaining more in detail! @spyder-ide/core-developers what do you think about this?

@impact27
Copy link

This is a good idea but I don't think this will be easy to implement.

@OverLordGoldDragon
Copy link
Author

OverLordGoldDragon commented Jun 22, 2021

@impact27 Wouldn't it be as simple as make_icon_glow() after runcell()? nope

@OverLordGoldDragon
Copy link
Author

Spyder already forces focus on itself when reaching a breakpoint in debugging so there's a mechanism in place, which could be a temporary solution. Ctrl + Enter -> runcell(); force_focus()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants