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

Add option to notify only in background #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benmanns
Copy link

This adds a -b/--only-in-background option that will only notify if the Jupyter notebook is in the background. This allows you to use something like %autonotify -b -a 5, which will notify on every cell execution over 5 seconds long, but only if you have switched windows or tabs. I think this is a pretty good experience as if the window is active you will already see that the cell has finished execution, and can avoid the extra notification.

This adds a -b/--only-in-background option that will only notify if the Jupyter notebook is in the background. This allows you to use something like `%autonotify -b -a 5`, which will notify on every cell execution over 5 seconds long, but only if you have switched windows or tabs. I think this is a pretty good experience as if the window is active you will already see that the cell has finished execution, and can avoid the extra notification.
@mdagost
Copy link
Contributor

mdagost commented Sep 18, 2018

@benmanns Thanks for this PR, and sorry that we didn't notice it until just now. I will take a look as soon as I can...

@gsganden gsganden changed the base branch from master to main April 23, 2021 20:49
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

Successfully merging this pull request may close these issues.

2 participants